Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/not-an-aardvark/endian

Tests system endianness
https://github.com/not-an-aardvark/endian

Last synced: about 1 month ago
JSON representation

Tests system endianness

Awesome Lists containing this project

README

        

# endian

Gets the system's endianness. Also works in browsers.

```js
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`.