Skip to main content
This release is 1 version behind 5.0.1 — the latest version of @rebeccastevens/uom-types. Jump to latest

Built and signed on GitHub Actions

Typesafe units with no runtime overhead.

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
3 months ago (5.0.0)

Units of Measure Types

Typesafe units with no runtime overhead.

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

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

npm

# Install with npm
npm install uom-types

# Install with pnpm
pnpm add uom-types

# Install with yarn
yarn add uom-types

# Install with bun
bun add uom-types

jsr

# Install in a node project
npx jsr add @rebeccastevens/uom-types

# Install in a deno project
deno add jsr:@rebeccastevens/uom-types

# Install in a bun project
bunx jsr add @rebeccastevens/uom-types

Documentation

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

Inspiration

Inspired by uom-ts.

Built and signed on
GitHub Actions
View transparency log

Add Package

deno add jsr:@rebeccastevens/uom-types

Import symbol

import * as uom_types from "@rebeccastevens/uom-types";

---- OR ----

Import directly with a jsr specifier

import * as uom_types from "jsr:@rebeccastevens/uom-types";

Add Package

npx jsr add @rebeccastevens/uom-types

Import symbol

import * as uom_types from "@rebeccastevens/uom-types";

Add Package

yarn dlx jsr add @rebeccastevens/uom-types

Import symbol

import * as uom_types from "@rebeccastevens/uom-types";

Add Package

pnpm dlx jsr add @rebeccastevens/uom-types

Import symbol

import * as uom_types from "@rebeccastevens/uom-types";

Add Package

bunx jsr add @rebeccastevens/uom-types

Import symbol

import * as uom_types from "@rebeccastevens/uom-types";