convert-metric-prefixes

1.0.1 • Public • Published

Metric Prefixes

Convert metric prefixes independent of the metric

# 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

- MIT -

Readme

Keywords

Package Sidebar

Install

npm i convert-metric-prefixes

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • jense5