npm · zero-dependency · cross-runtime

unit-converter

Type-safe conversions across 10 categories. Exact BigInt arithmetic where it matters. NIST-pinned coefficients.

$ npm i @biggora/unit-converter

Playground

BigInt mode

exact integer arithmetic

Integer-aligned categories (time, dataStorage) accept bigint inputs and refuse to silently truncate.

Error model

six classes, stable codes

Every failure inherits UnitConverterError. Click a button to fire a deliberate bad call and inspect the thrown instance.

Click an error scenario above.