# nist-number

> Number (digit) grouping with spaces, according to NIST

Latest version **1.1.0** (published 2015-12-08) · ISC license · 0 weekly downloads

## Install

```sh
npm install nist-number
pnpm add nist-number
yarn add nist-number
bun add nist-number
```

## 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.1.0 |
| Published | 2015-12-08 |
| First published | 2015-11-26 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Tomas Kafka |
| Maintainers | tomaskafka |
| Keywords | digit, decimal, group, number, comma, mark |

## Links

- npm: https://www.npmjs.com/package/nist-number
- Repository: https://github.com/tkafka/node-nist-number
- Homepage: https://github.com/tkafka/node-nist-number#readme
- Issues: https://github.com/tkafka/node-nist-number/issues
- npm.io page: https://npm.io/package/nist-number

## Alternatives

- [@mdxeditor/editor](https://npm.io/package/@mdxeditor/editor.md) — 962.4K weekly downloads
- [mmdb-lib](https://npm.io/package/mmdb-lib.md) — 680.9K weekly downloads
- [playcanvas](https://npm.io/package/playcanvas.md) — 36.2K weekly downloads
- [@glw907/cairn-cms](https://npm.io/package/@glw907/cairn-cms.md) — 967 weekly downloads
- [markdown-to-confluence](https://npm.io/package/markdown-to-confluence.md) — 103 weekly downloads

## Recent versions

- 1.1.0 (latest) — 2015-12-08
- 1.0.1 — 2015-11-26
- 1.0.0 — 2015-11-26

## README

Formats numbers into groups of three digits separated with space, as used by [NIST](https://en.wikipedia.org/wiki/Decimal_mark) et. al.

See [tests](https://github.com/tkafka/node-nist-number/blob/master/test/test-nist-number.js).

Install:

```sh
npm install --save nist-number
```

Use:


```javascript
var nistNumber = require('nist-number')

nistNumber(123456) // = '123 456'
nistNumber(-123456) // = '-123 456'
nistNumber(-123456.7891 // = '-123 456.7891'

nistNumber(undefined) // = null
nistNumber(null) // = null
nistNumber('string is not a number') // = null
nistNumber({lol: 'object'}) // = null
```

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