# utils-is-little-endian

> Check if an environment is little endian.

Latest version **1.0.0** (published 2016-01-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install utils-is-little-endian
pnpm add utils-is-little-endian
yarn add utils-is-little-endian
bun add utils-is-little-endian
```

Provides the command `is-le`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2016-01-14 |
| First published | 2016-01-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Athan Reines |
| Maintainers | kgryte |
| Keywords | utilities, utility, utils, util, le, be, little, endian, big, is, cli, byte order, check |

## Links

- npm: https://www.npmjs.com/package/utils-is-little-endian
- Repository: https://github.com/kgryte/utils-is-little-endian
- Homepage: https://github.com/kgryte/utils-is-little-endian#readme
- Issues: https://github.com/kgryte/utils-is-little-endian/issues
- npm.io page: https://npm.io/package/utils-is-little-endian

## Dependencies (3)

- [pkginfo](https://npm.io/package/pkginfo.md) ^0.3.1
- [minimist](https://npm.io/package/minimist.md) ^1.2.0
- [update-notifier](https://npm.io/package/update-notifier.md) ^0.6.0

## Alternatives

- [memory-cache](https://npm.io/package/memory-cache.md) — 795.0K weekly downloads
- [@httptoolkit/proxy-agent](https://npm.io/package/@httptoolkit/proxy-agent.md) — 11.2K weekly downloads
- [express-cache-controller](https://npm.io/package/express-cache-controller.md) — 5.3K weekly downloads
- [http-cache-middleware](https://npm.io/package/http-cache-middleware.md) — 4.5K weekly downloads
- [cache2](https://npm.io/package/cache2.md) — 1.5K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2016-01-14
- 0.0.0 — 2016-01-14

## README

Little Endian
===
[![NPM version][npm-image]][npm-url] [![Build Status][build-image]][build-url] [![Coverage Status][coverage-image]][coverage-url] [![Dependencies][dependencies-image]][dependencies-url]

> Check if an environment is [little endian][endianness].


## Installation

``` bash
$ npm install utils-is-little-endian
```


## Usage

``` javascript
var isLittleEndian = require( 'utils-is-little-endian' );
```

#### isLittleEndian

`Boolean` indicating if an environment is [little endian][endianness].

``` javascript
var bool = isLittleEndian;
// returns <boolean>
```


## Examples

``` javascript
var isLittleEndian = require( 'utils-is-little-endian' );

console.log( isLittleEndian );
// returns <boolean>
```

To run the example code from the top-level application directory,

``` bash
$ node ./examples/index.js
```


---
## CLI

### Installation

To use the module as a general utility, install the module globally

``` bash
$ npm install -g utils-is-little-endian
```


### Usage

``` bash
Usage: is-le [options]

Options:

  -h,    --help                Print this message.
  -V,    --version             Print the package version.
```


### Examples

``` bash
$ is-le
# => true | false
```


---
## Tests

### Unit

This repository uses [tape][tape] for unit tests. To run the tests, execute the following command in the top-level application directory:

``` bash
$ make test
```

All new feature development should have corresponding unit tests to validate correct functionality.


### Test Coverage

This repository uses [Istanbul][istanbul] as its code coverage tool. To generate a test coverage report, execute the following command in the top-level application directory:

``` bash
$ make test-cov
```

Istanbul creates a `./reports/coverage` directory. To access an HTML version of the report,

``` bash
$ make view-cov
```


### Browser Support

This repository uses [Testling][testling] for browser testing. To run the tests in a (headless) local web browser, execute the following command in the top-level application directory:

``` bash
$ make test-browsers
```

To view the tests in a local web browser,

``` bash
$ make view-browser-tests
```

<!-- [![browser support][browsers-image]][browsers-url] -->


---
## License

[MIT license](http://opensource.org/licenses/MIT).


## Copyright

Copyright &copy; 2016. Athan Reines.


[npm-image]: http://img.shields.io/npm/v/utils-is-little-endian.svg
[npm-url]: https://npmjs.org/package/utils-is-little-endian

[build-image]: http://img.shields.io/travis/kgryte/utils-is-little-endian/master.svg
[build-url]: https://travis-ci.org/kgryte/utils-is-little-endian

[coverage-image]: https://img.shields.io/codecov/c/github/kgryte/utils-is-little-endian/master.svg
[coverage-url]: https://codecov.io/github/kgryte/utils-is-little-endian?branch=master

[dependencies-image]: http://img.shields.io/david/kgryte/utils-is-little-endian.svg
[dependencies-url]: https://david-dm.org/kgryte/utils-is-little-endian

[dev-dependencies-image]: http://img.shields.io/david/dev/kgryte/utils-is-little-endian.svg
[dev-dependencies-url]: https://david-dm.org/dev/kgryte/utils-is-little-endian

[github-issues-image]: http://img.shields.io/github/issues/kgryte/utils-is-little-endian.svg
[github-issues-url]: https://github.com/kgryte/utils-is-little-endian/issues

[tape]: https://github.com/substack/tape
[istanbul]: https://github.com/gotwarlost/istanbul
[testling]: https://ci.testling.com

[endianness]: http://en.wikipedia.org/wiki/Endianness

---
_Source: https://npm.io/package/utils-is-little-endian · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
