
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
node-unit-conversion
Advanced tools
Just install the package using npm
npm install node-unit-conversion
WARNING: The package is still in development and new units and features will be added in time (as much as time permits)
You just need to call the module with the value you want converted, then pipe through the from and to functions in any order.
var convert = require('node-unit-conversion');
var result = convert(100).from('metre').to('centimetre');
var sameResult = convert(100).to('centimetre').from('metre');
Units are being added. Currently the supported units are:
Length
metre ( + magnitudes - eg. centimetre, kilometre, ...),
uk foot, uk thou, uk inch, uk yard, uk chain, uk furlong, uk mile, uk league
us point, us pica, us inch, us foot, us yard, us mile,
us link, us rod, us foot (survey), us rod, us chain, us furlong, us mile (survey), us league,
us fathom, us cable, us nautical mile
Mass
gram ( + magnitudes - eg. kilogram, milligram, ...), tonne,
us grain, us dram, us ounce, us pound, us hundredweight, us long hundredweight, us ton, us long ton, us pennyweight,
us troy ounce, us troy pound
Time
second ( + magnitudes - eg. millisecond, nanosecond, ...), minute, hour, day, year
Electric Current
ampere ( + magnitudes - eg. milliampere, kiloampere, ...)
Temperature
celsius, fahrenheit, kelvin, rankine
Substance
mole ( + magnitudes)
Luminous Intensity
candela ( + magnitudes)
FAQs
Unit conversion for NodeJS
We found that node-unit-conversion demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.