Get host machine (native) endianness (byte order), like Node's
os.endianness
but portable.
const hostEndianness = require('host-endianness');
console.log(hostEndianness); // 'LE' or 'BE'Get host machine (native) endianness (byte order).
Get host machine (native) endianness (byte order), like Node's
os.endianness
but portable.
const hostEndianness = require('host-endianness');
console.log(hostEndianness); // 'LE' or 'BE'