3.1.1 • Published 9 months ago

uom-types v3.1.1

Weekly downloads
-
License
BSD-3-Clause
Repository
github
Last release
9 months ago

Units of Measure Types

Typesafe units with no runtime overhead.

npm version CI Coverage Status Documentation\ code style: prettier GitHub Discussions BSD 3 Clause license Commitizen friendly semantic-release

Donate

Any donations would be much appreciated. 😄

Enterprise Users

uom-types is available as part of the Tidelift Subscription.

Tidelift is working with the maintainers of uom-types and a growing network of open source maintainers to ensure your open source software supply chain meets enterprise standards now and into the future. Learn more.

Installation

# Install with npm
npm install -D uom-types

# Install with pnpm
pnpm add -D uom-types

# Install with yarn
yarn add -D uom-types

Library Structure

This library is split into several submodules.

  • uom-types\ Defines the core types of this library. You'll only need to use if if you are defining your own custom types.

  • uom-types/functions\ Defines runtime mathematical functions that are type-aware of this library's type.

  • uom-types/functions/higher-order\ Defines runtime higher order mathematical functions that are type-aware of this library's type.

  • uom-types/units\ Defines common units.\ Note: does not currently define any imperial types.

  • uom-types/units/converters\ Defines runtime functions for converting between different units of the same UnitClass.

Documentation

Check out RebeccaStevens.github.io/uom-types for the documentation.

Inspiration

Inspired by uom-ts.

3.1.1

9 months ago

3.1.0

9 months ago

3.0.1

9 months ago

3.0.0

9 months ago

2.0.0

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago

0.1.0

10 months ago