# comma-it

> Node.js module convert numbers to amounts

Latest version **0.0.7** (published 2014-12-14) · 0 weekly downloads

## Install

```sh
npm install comma-it
pnpm add comma-it
yarn add comma-it
bun add comma-it
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.7 |
| Published | 2014-12-14 |
| First published | 2012-10-03 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | * |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Avner Cohen |
| Maintainers | avnerner |
| Keywords | Amounts, Commas, Numbers |

## Links

- npm: https://www.npmjs.com/package/comma-it
- Repository: git@github.com:AvnerCohen/comma-it
- Homepage: https://github.com/AvnerCohen/comma-it
- Issues: https://github.com/AvnerCohen/comma-it/issues
- npm.io page: https://npm.io/package/comma-it

## Alternatives

- [random-seedable](https://npm.io/package/random-seedable.md) — 27.9K weekly downloads
- [n2words](https://npm.io/package/n2words.md) — 22.2K weekly downloads
- [@stdlib/math-base-special-factorialln](https://npm.io/package/@stdlib/math-base-special-factorialln.md) — 5.7K weekly downloads
- [@stdlib/math-base-special-abs2](https://npm.io/package/@stdlib/math-base-special-abs2.md) — 1.7K weekly downloads
- [commons-math-interpolation](https://npm.io/package/commons-math-interpolation.md) — 1.4K weekly downloads

## Recent versions

- 0.0.7 (latest) — 2014-12-14
- 0.0.6 — 2014-03-18
- 0.0.5 — 2012-11-20
- 0.0.4 — 2012-10-03
- 0.0.3 — 2012-10-03
- 0.0.2 — 2012-10-03
- 0.0.1 — 2012-10-03

## README

Comma-It.js
===========

[![Build status](https://travis-ci.org/AvnerCohen/comma-it.png)](https://travis-ci.org/AvnerCohen/comma-it)

Tiny module to turn numbers into a more readble amounts by adding commas:
> 1234.5  => 1,234.50

```js
//require it
var commaIt = require('../comma-it');
```

```js
commaIt( '12341233,12', {addPrecision:true}); // => '12 341 233,12'
```

Custom seperators:

```js
commaIt('12341233.12', {addPrecision:true, thousandSeperator : ',', decimalSeperator : '.'}); // => 12,341,233.12'
```

[@avnerner](https://www.twitter.com/avnerner "@avnerner")

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