2.5.1 • Published 17 days ago

uom-units v2.5.1

Weekly downloads
640
License
MIT
Repository
github
Last release
17 days ago

uom-units

npm version travis build Coverage Status code style: prettier MIT license

Predefined units for use with the uom package

Introduction

This package has units that can be used with the uom package.

Installation

npm install --save uom-units

How to use

The main export from this package is the Units module that contains all the defined quantities and units.

Here is an example how to use the defined units for conversion:

import { Amount } from "uom";
import { Units } from "uom-units";

const amount = Amount.create(10, Units.Meter);
const inch = Amount.valueAs(Units.Inch, amount);

How to develop

Create a PR for addition or changes. Please update the changelog's "unreleased" section with your changes in your PR.

How to publish

Don't forget to update the changelog before publishing. Then run:

yarn version --patch
yarn version --minor
yarn version --major
2.5.1

17 days ago

2.5.0

3 months ago

2.4.0

3 months ago

2.3.4

1 year ago

2.3.0

2 years ago

2.3.1

2 years ago

2.2.0

3 years ago

2.1.0

3 years ago

2.0.0

4 years ago

2.0.0-0

4 years ago

1.0.0

4 years ago

0.6.1

4 years ago

0.5.1

4 years ago

0.6.0

4 years ago

0.5.0

5 years ago

0.4.0

5 years ago

0.3.0

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago