UNPKG

angular-units-converter

Version:

A simple utility library to measure and convert between units

40 lines (33 loc) 749 B
'use strict'; function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var utils = _interopDefault(require('../utils.js')); const RATIO = 1; const voltage = { metric: { baseUnit: 'V', transform: (val) => { return val * RATIO }, V: { name: { singular: 'Volt', plural: 'Volts' }, to_anchor: 1 }, mV: { name: { singular: 'Millivolt', plural: 'Millivolts' }, to_anchor: 0.001 }, kV: { name: { singular: 'Kilovolt', plural: 'Kilovolts' }, to_anchor: 1000 } } }; var voltage$1 = utils(voltage); module.exports = voltage$1;