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), like Node's
os.endianness
but portable.
const hostEndianness = require('host-endianness');
console.log(hostEndianness); // 'LE' or 'BE'
npm i host-endianness
4
0.1.3
ISC