byte-converter
Converts different units of Bytes. Currently supported units are B, KB, MB, GB, TB, PB. Those units are stored inside a description file 'lib/unit-description.js'.
Installation
npm install byte-converter
Usage in base 10
var converter = converterBase10;var result = ; //returns 1000
Usage in base 2
var converter = converterBase2;var result = ; //returns 1024