os.endianness()


返回标识为其编译 Node.js 二进制文件的 CPU 的字节序的字符串。

可能的值是大端序的 'BE' 和小端序的 'LE'

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

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