# to-uint-24-x

> Converts a value to Uint24.

Latest version **4.1.2** (published 2019-08-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install to-uint-24-x
pnpm add to-uint-24-x
yarn add to-uint-24-x
bun add to-uint-24-x
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 4.1.2 |
| Published | 2019-08-28 |
| First published | 2017-06-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=8.11.4 |
| Dependencies | 4 |
| Unpacked size | 233.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Graham Fairweather |
| Maintainers | xotic750 |
| Keywords | toUint24, module, javascript, nodejs, browser |

## Links

- npm: https://www.npmjs.com/package/to-uint-24-x
- Repository: https://github.com/Xotic750/to-uint-24-x
- Issues: https://github.com/Xotic750/to-uint-24-x/issues
- npm.io page: https://npm.io/package/to-uint-24-x

## Dependencies (4)

- [modulo-x](https://npm.io/package/modulo-x.md) ^2.1.1
- [is-finite-x](https://npm.io/package/is-finite-x.md) ^4.2.1
- [math-sign-x](https://npm.io/package/math-sign-x.md) ^4.2.2
- [to-number-x](https://npm.io/package/to-number-x.md) ^3.2.2

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 4.1.2 (latest) — 2019-08-28
- 4.1.1 — 2019-08-20
- 4.1.0 — 2019-08-14
- 4.0.17 — 2019-07-31
- 4.0.16 — 2019-07-27
- 4.0.15 — 2019-07-27
- 4.0.14 — 2019-07-26
- 4.0.13 — 2019-07-25
- 4.0.12 — 2019-07-24
- 4.0.11 — 2019-07-24
- 4.0.10 — 2019-07-22
- 4.0.9 — 2019-07-21
- 4.0.8 — 2019-07-19
- 4.0.7 — 2019-07-18
- 4.0.6 — 2019-07-18
- … 13 more at https://npm.io/package/to-uint-24-x/versions

## README

<a
  href="https://travis-ci.org/Xotic750/to-uint-24-x"
  title="Travis status">
<img
  src="https://travis-ci.org/Xotic750/to-uint-24-x.svg?branch=master"
  alt="Travis status" height="18">
</a>
<a
  href="https://david-dm.org/Xotic750/to-uint-24-x"
  title="Dependency status">
<img src="https://david-dm.org/Xotic750/to-uint-24-x/status.svg"
  alt="Dependency status" height="18"/>
</a>
<a
  href="https://david-dm.org/Xotic750/to-uint-24-x?type=dev"
  title="devDependency status">
<img src="https://david-dm.org/Xotic750/to-uint-24-x/dev-status.svg"
  alt="devDependency status" height="18"/>
</a>
<a
  href="https://badge.fury.io/js/to-uint-24-x"
  title="npm version">
<img src="https://badge.fury.io/js/to-uint-24-x.svg"
  alt="npm version" height="18">
</a>
<a
  href="https://www.jsdelivr.com/package/npm/to-uint-24-x"
  title="jsDelivr hits">
<img src="https://data.jsdelivr.com/v1/package/npm/to-uint-24-x/badge?style=rounded"
  alt="jsDelivr hits" height="18">
</a>
<a
  href="https://bettercodehub.com/results/Xotic750/to-uint-24-x"
  title="bettercodehub score">
<img src="https://bettercodehub.com/edge/badge/Xotic750/to-uint-24-x?branch=master"
  alt="bettercodehub score" height="18">
</a>
<a
  href="https://coveralls.io/github/Xotic750/to-uint-24-x?branch=master"
  title="Coverage Status">
<img src="https://coveralls.io/repos/github/Xotic750/to-uint-24-x/badge.svg?branch=master"
  alt="Coverage Status" height="18">
</a>

<a name="module_to-uint-24-x"></a>

## to-uint-24-x

Converts a value to Uint24.

<a name="exp_module_to-uint-24-x--module.exports"></a>

### `module.exports(argument)` ⇒ <code>number</code> ⏏

The abstract operation ToUint24 converts argument to one of 2^24 integer
values in the range 0 through 2^24-1, inclusive.

**Kind**: Exported function  
**Returns**: <code>number</code> - Integer value, 0 through 2^24-1, inclusive.

| Param    | Type                | Description                                      |
| -------- | ------------------- | ------------------------------------------------ |
| argument | <code>number</code> | The argument to convert to one of 2^24 integers. |

**Example**

```js
import toUint24 from 'to-uint-24-x';
console.log(toUint24(1)); // 1
console.log(toUint24(-1)); // 16777215 (2^24-1)
```

---
_Source: https://npm.io/package/to-uint-24-x · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
