# jsx-number-format

> Light Weight Implementation of Number format

Latest version **0.1.5** (published 2022-03-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install jsx-number-format
pnpm add jsx-number-format
yarn add jsx-number-format
bun add jsx-number-format
```

## 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.1.5 |
| Published | 2022-03-04 |
| First published | 2020-09-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Kering |
| Maintainers | keringdered |
| Keywords | Node Number format, Formatting numbers in javascript, ReactJs Number format, Javascript thousand seperator, number_format, number-format, NumberFormat, numberFormat, formatting numbers to currency, npm number formart, JS Number Format |

## Links

- npm: https://www.npmjs.com/package/jsx-number-format
- Homepage: https://github.com/keringdered/number-format
- npm.io page: https://npm.io/package/jsx-number-format

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.1.5 (latest) — 2022-03-04
- 0.1.4 — 2020-09-03
- 0.1.3 — 2020-09-02
- 0.1.2 — 2020-09-02
- 0.1.1 — 2020-09-02

## README

# JSX Number Format
This is a lightweight js number formatting library
## To install
 _npm install jsx-number-format_
 
# Usage
- Syntax
```javascript
NumberFormat(float,decimal_places,thousand_seperater)
```
* Permitted thousand separators are :
    * Comma(,)
    * Space(" ")

 ```javascript
const {NumberFormat} = require('jsx-number-format');
 let formattedNumber =NumberFormat(5000,2,',');
// or formatNumber = NumberFormat(5000);
/*5000 is the amount to format
* 2 decimal places (optional)
* , is the thousand delimiter(optional)
* result: 5,000.00
*/
let formattedNumber2 =  NumberFormat(5000.789,2,',');
/*or formattedNumber2 =  NumberFormat(5000.789);
* gives 5,000.79
*/
//Having .004 which the last value 4 is less than 5
let formattedNumber3 =  NumberFormat(5000.004,2,',');
/* or let formattedNumber3 =  NumberFormat(5000.004);
* gives 5,000.00
*/
```

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