Skip to main content
Version: v0.0.2

Function: loadUcumEssence()

loadUcumEssence(): UcumEssence

Load the UCUM essence table, parsing the embedded verbatim XML on first call and caching it.

Returns

UcumEssence

The immutable in-memory UcumEssence model (7 base units, 24 prefixes, ~305 atoms).

Example

import { loadUcumEssence } from "@cosyte/terminology";

const essence = loadUcumEssence();
essence.atomByCode.has("m"); // => true