node package manager

parse-metric

parse-metric

Build Status NPM version

Translates numbers with CI prefixes into plain JavaScript Numbers.

Examples

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