corva-convert-units
Advanced tools
Comparing version 1.5.1 to 1.6.0
var metric, imperial; | ||
metric = { | ||
Nm: { | ||
N: { | ||
name: { | ||
singular: 'Newton Meter', | ||
plural: 'Newton Meters', | ||
display: 'Nm' | ||
singular: 'Newton', | ||
plural: 'Newtons', | ||
display: 'N' | ||
}, | ||
to_anchor: 1 | ||
}, | ||
J: { | ||
daN: { | ||
name: { | ||
singular: 'Joule', | ||
plural: 'Joules', | ||
display: 'J' | ||
singular: 'Dekanewton', | ||
plural: 'Dekanewtons', | ||
display: 'daN' | ||
}, | ||
to_anchor: 1 | ||
to_anchor: 10 | ||
} | ||
@@ -25,7 +25,15 @@ }; | ||
name: { | ||
singular: 'Pound Foot', | ||
plural: 'Pound Feet', | ||
display: 'ft-lb' | ||
singular: 'Pound Force', | ||
plural: 'Pound Force', | ||
display: 'lbf' | ||
}, | ||
to_anchor: 1 | ||
}, | ||
klbf: { | ||
name: { | ||
singular: 'Kilo-Pound Force', | ||
plural: 'Kilo-Pound Force', | ||
display: 'kft-lb' | ||
}, | ||
to_anchor: 1000 | ||
} | ||
@@ -39,10 +47,10 @@ }; | ||
metric: { | ||
unit: 'nm', | ||
ratio: 1.35581794833 | ||
unit: 'N', | ||
ratio: 1 | ||
}, | ||
imperial: { | ||
unit: 'lbf', | ||
ratio: 1 / 1.35581794833 | ||
ratio: 1/0.2248089431 | ||
} | ||
} | ||
}; |
@@ -15,2 +15,3 @@ var convert, keys = require('lodash.keys'), | ||
pressure: require('./definitions/pressure'), | ||
torque: require('./definitions/torque'), | ||
force: require('./definitions/force'), | ||
@@ -243,3 +244,3 @@ density: require('./definitions/density') | ||
throw new Error('Unsupported unit ' + what + ', use one of: ' + validUnits.join(', ')); | ||
} | ||
}; | ||
@@ -246,0 +247,0 @@ /** |
{ | ||
"name": "corva-convert-units", | ||
"version": "1.5.1", | ||
"version": "1.6.0", | ||
"description": "Convert between quantities in different units", | ||
@@ -5,0 +5,0 @@ "main": "lib", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27928
20
1354