0.1.0 • Published 8 years ago
endian v0.1.0
endian
Gets the system's endianness. Also works in browsers.
var endianness = require('endian');
console.log(endianness);
// => 'LE'
In node, this exports the string LE
if the system is little-endian, or the string BE
if the system is big-endian.
In browsers, this adds an endianness
property to window
, with a value of either LE
or BE
.
0.1.0
8 years ago