This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@sturle/convert

0.0.16 • Public • Published

Usage

Syntax:

npx @sturlen/convert AMOUNT FROM TO

Example:

npx @sturlen/convert 1 kilometer miles
0.6

Supports SI-prefixes, singular, plural and abbreviations. e.g. kilometer, kilometers, km

Issues

If you want to request a feature or report a bug, feel free to open an issue on Github.

Supported units

All SI-units support the following prefixes:

  • yotta
  • zetta
  • exa
  • peta
  • tera
  • giga
  • mega
  • kilo
  • hecto
  • deca
  • deci
  • centi
  • milli
  • micro
  • nano
  • pico
  • femto
  • atto
  • yocto
  • zepto

Length

  • meter
  • inch
  • foot
  • yard
  • mile

Weight

  • gram
  • pound

Temperature

  • kelvin
  • celsius
  • fahrenheit

Todo

  • More quantities
  • Library version
  • Better precision
  • Help command
  • Handle mulitple unit matches, e.g. Celsius(C) and Candela(C)
  • Better way of testing all units, rather then manualy writing tests for each.
  • Dimensonality (m3, sqaure-foot, etc.)
  • Combined units (meters-per-second, mph)

Readme

Keywords

Package Sidebar

Install

npm i @sturle/convert

Weekly Downloads

1

Version

0.0.16

License

MIT

Unpacked Size

11.4 kB

Total Files

5

Last publish

Collaborators

  • sturle