os.endianness()


返回一个字符串,用于标识编译 Node.js 二进制文件的 CPU 的字节序。

【Returns a string identifying the endianness of the CPU for which the Node.js binary was compiled.】

可能的值为 'BE' 表示大端,'LE' 表示小端。

【Possible values are 'BE' for big endian and 'LE' for little endian.】