convert-metric-prefixes
v1.0.1
Published
Converts metric prefixes
Downloads
9
Readme
# Install with npm
$ npm install --save convert-metric-prefixes
// Convert values between prefixes. Use 'unit' as default metric.
import { convert, isAvailable } from 'convert-metric-prefixes';
isAvailable('kilo'); // True
isAvailable('unit'); // True
convert('unit', 'kilo', 1); // 1000