Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/afeiship/next-to-thousands

To thousands for number.
https://github.com/afeiship/next-to-thousands

next thousands

Last synced: 8 days ago
JSON representation

To thousands for number.

Awesome Lists containing this project

README

        

# next-to-thousands
> To thousands for number.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]

## installation
```bash
npm install -S @jswork/next-to-thousands
```

## usage
```js
import '@jswork/next-to-thousands';

nx.toThousands('10000') //10,000
nx.toThousands('100') //100
nx.toThousands(10000) //10,000
nx.toThousands(1000,'|') //1|000
```

## license
Code released under [the MIT license](https://github.com/afeiship/next-to-thousands/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/next-to-thousands
[version-url]: https://npmjs.org/package/@jswork/next-to-thousands

[license-image]: https://img.shields.io/npm/l/@jswork/next-to-thousands
[license-url]: https://github.com/afeiship/next-to-thousands/blob/master/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-to-thousands
[size-url]: https://github.com/afeiship/next-to-thousands/blob/master/dist/next-to-thousands.min.js

[download-image]: https://img.shields.io/npm/dm/@jswork/next-to-thousands
[download-url]: https://www.npmjs.com/package/@jswork/next-to-thousands