1.3.2 • Published 7 years ago

si-tools v1.3.2

Weekly downloads
10
License
MIT
Repository
github
Last release
7 years ago

si-tools Build Status

Parsing and Formatting of SI numbers: SI.format(0.000005, 'M')'5µM'

Install

$ npm install --save si-tools

Usage

SI.format(1210000000, 'W')
//=> '1.21GW'

SI.parse('1.21GW')
//=> { number: 1210000000,
//     prefix: 'G',
//     unit: 'W' }

Credits

  • Forked from Snidre Sorhus' pretty-bytes module. Adapted to work with SI numbers.

License

MIT © Steve Perkins

1.3.2

7 years ago

1.3.1

7 years ago

1.2.1

8 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.1

9 years ago

1.0.0

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago