Socket
Socket
Sign inDemoInstall

corva-convert-units

Package Overview
Dependencies
Maintainers
3
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

corva-convert-units - npm Package Compare versions

Comparing version 1.5.1 to 1.6.0

lib/definitions/torque.js

38

lib/definitions/force.js
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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc