https://github.com/afeiship/digits-split
Digits split to standard numers.
https://github.com/afeiship/digits-split
bun digits-split num number unittest
Last synced: 3 months ago
JSON representation
Digits split to standard numers.
- Host: GitHub
- URL: https://github.com/afeiship/digits-split
- Owner: afeiship
- License: mit
- Created: 2017-04-05T09:01:36.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2024-05-12T03:18:21.000Z (about 2 years ago)
- Last Synced: 2025-10-12T02:04:29.508Z (8 months ago)
- Topics: bun, digits-split, num, number, unittest
- Language: TypeScript
- Homepage:
- Size: 87.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# digits-split
> Digits split to standard numers.
[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]
## installation
```shell
npm install @jswork/digits-split
```
## usage
```js
import digitsSplit from '@jswork/digits-split';
digitsSplit(1024);
// [1000, 0, 20, 4]
```
## license
Code released under [the MIT license](https://github.com/afeiship/digits-split/blob/master/LICENSE.txt).
[version-image]: https://img.shields.io/npm/v/@jswork/digits-split
[version-url]: https://npmjs.org/package/@jswork/digits-split
[license-image]: https://img.shields.io/npm/l/@jswork/digits-split
[license-url]: https://github.com/afeiship/digits-split/blob/master/LICENSE.txt
[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/digits-split
[size-url]: https://github.com/afeiship/digits-split/blob/master/dist/digits-split.min.js
[download-image]: https://img.shields.io/npm/dm/@jswork/digits-split
[download-url]: https://www.npmjs.com/package/@jswork/digits-split