parse-metric

Translates numbers with metric prefixes into plain JavaScript Numbers

parse-metric

Translates numbers with CI prefixes into plain JavaScript Numbers.

var pm = require('parse-metric');
 
pm('200kB');   // => 200000 
pm('12.75cm'); // => 0.1275