UNPKG

convert-units

Version:

Convert between quantities in different units

79 lines (75 loc) 1.2 kB
var frequency; frequency = { mHz: { name: { singular: 'millihertz' , plural: 'millihertz' } , to_anchor: 1/1000 } , Hz: { name: { singular: 'hertz' , plural: 'hertz' } , to_anchor: 1 } , kHz: { name: { singular: 'kilohertz' , plural: 'kilohertz' } , to_anchor: 1000 } , MHz: { name: { singular: 'megahertz' , plural: 'megahertz' } , to_anchor: 1000 * 1000 } , GHz: { name: { singular: 'gigahertz' , plural: 'gigahertz' } , to_anchor: 1000 * 1000 * 1000 } , THz: { name: { singular: 'terahertz' , plural: 'terahertz' } , to_anchor: 1000 * 1000 * 1000 * 1000 } , rpm: { name: { singular: 'rotation per minute' , plural: 'rotations per minute' } , to_anchor: 1/60 } , "deg/s": { name: { singular: 'degree per second' , plural: 'degrees per second' } , to_anchor: 1/360 } , "rad/s": { name: { singular: 'radian per second' , plural: 'radians per second' } , to_anchor: 1/(Math.PI * 2) } }; module.exports = { metric: frequency , _anchors: { frequency: { unit: 'hz' , ratio: 1 } } };