EU Public-Sector Open-Data & Document Accessibility Observatory
Open-source DCAT-AP v3, 5-Star Open Data, and EN 301 549 / ISO 14289-1 (PDF/UA-1) compliance observatory for European public-sector catalogs.
Deterministic dimensional analysis and NIST Special Publication 811 / ISO 80000-1 metrological unit conversion library.
nist-sp811-units is a zero-dependency dimensional analysis and physical unit conversion library implementing exact rational and IEEE-754 conversion factors from NIST Special Publication 811 (Guide for the Use of the International System of Units (SI)), the 9th Edition BIPM SI Brochure, and ISO/IEC 80000.
Every unit is modeled by a canonical 7-tuple dimension vector over SI base quantities (L, M, T, I, Theta, N, J) (metre, kilogram, second, ampere, kelvin, mole, candela), preventing invalid cross-dimensional conversions at compile time and runtime.
| Domain | Normative Standard | Representative Units & Exact Anchors |
|---|---|---|
| Length & Area | BIPM SI / NIST SP 811 | m, nm, au, pc, exact international foot (0.3048 m) |
| Mass & Force | ISO 80000-4 | kg, u (Dalton), N, dyn, lbf (4.4482216152605 N) |
| Pressure & Stress | ISO 80000-4 | Pa, bar, atm (101325 Pa), mmHg, psi |
| Energy & Power | ISO 80000-5 | J, eV (1.602176634e-19 J), cal_IT (4.1868 J), BTU_IT, kWh |
| Thermodynamics | ITS-90 / ISO 80000-5 | Affine conversions across K, degC, degF, and degR |
| Ionizing Radiation | ICRU / NIST SP 811 | Bq, Ci, Gy, rad, Sv, rem |
| Digital Information | IEC 80000-13 | Decimal SI (kB, MB, GB) and binary IEC (KiB, MiB, GiB) prefixes |
npm install nist-sp811-units
import { convertUnit, areDimensionallyCompatible } from "nist-sp811-units";
const kpa = convertUnit(1, "atm", "kPa"); // 101.325
const kelvin = convertUnit(98.6, "degF", "K"); // 310.15
console.log(areDimensionallyCompatible("psi", "MPa")); // true
Validated with identical metrological test vectors across JavaScript/TypeScript (npm & JSR), Java 11+ (Maven Central), C99 (ESP-IDF), Swift 5.9, Clojure, and D (DUB).
Open-source DCAT-AP v3, 5-Star Open Data, and EN 301 549 / ISO 14289-1 (PDF/UA-1) compliance observatory for European public-sector catalogs.
Zero-dependency ISO 14289-1 (PDF/UA-1) & Matterhorn Protocol structural tag auditor and incremental-update stream inspector.