endian

0.1.0 • Public • Published

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.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i endian

      Weekly Downloads

      3

      Version

      0.1.0

      License

      MIT

      Last publish

      Collaborators

      • not-an-aardvark