0.0.16 • Published 1 year ago

@sturle/convert v0.0.16

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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)
0.0.16

1 year ago

0.0.15

1 year ago

0.0.14

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

0.0.0

2 years ago

1.0.0

2 years ago