New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

node-unit-conversion

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-unit-conversion

Unit conversion for NodeJS

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

overburn/node-unit-conversion

Build Status npm version

Installation

Just install the package using npm

npm install node-unit-conversion

Usage

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');

Supported units

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)

Keywords

units

FAQs

Package last updated on 13 Jul 2016

Did you know?

Socket

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.

Install

Related posts