@lgd-utils/number
TypeScript icon, indicating that this package has built-in type declarations

0.0.13 • Public • Published

@lgd-utils/number

Bundle size MIT NPM downloads NPM version lodash npm styled with prettier

A front-end number tool

Usage

import number from '@lgd-utils/number';

const { convertDataSize, convertLargeNumber } = number;
console.log(convertDataSize(1024, 'KB')); // ['1', 'MB', 1, 1024, 'KB']
console.log(convertLargeNumber(100000000)); // ['1.00', '亿', 1, 100000000, '']

Contribute

Documentation

Related

Package Sidebar

Install

npm i @lgd-utils/number

Weekly Downloads

13

Version

0.0.13

License

MIT

Unpacked Size

279 kB

Total Files

11

Last publish

Collaborators

  • lgd.huafeeng