Parsing and Formatting of SI numbers:
SI.format(0.000005, 'M')
→'5µM'
$ npm install --save si-tools
SI.format(1210000000, 'W')
//=> '1.21GW'
SI.parse('1.21GW')
//=> { number: 1210000000,
// prefix: 'G',
// unit: 'W' }
- Forked from Snidre Sorhus' pretty-bytes module. Adapted to work with SI numbers.