UNPKG

cbi-units-converter

Version:

Forked from units-converter. A simple utility library to measure and convert between units

40 lines (33 loc) 750 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 sound = { metric: { baseUnit: 'db', transform: (val) => { return val * RATIO }, dB: { name: { singular: 'Decibel', plural: 'Decibels' }, to_anchor: 1 }, B: { name: { singular: 'Bel', plural: 'Bels' }, to_anchor: 10 }, '.43 decibel': { name: { singular: '.43 decibel', plural: '.43 decibels' }, to_anchor: 0.43 } } }; var sound$1 = utils(sound); module.exports = sound$1;