Tools for working with ICU NumberFormat skeletons and patterns.
Skeleton, // TS only
Unit // TS only
} from '@messageformat/number-skeleton'
The package is released as an ES module only. If using from a CommonJS context, you may need to
import() it, or use a module loader like esm.
Uses Intl.NumberFormat internally, including features provided by the Unified API Proposal.
|Class ||Description |
|NumberFormatError ||Base class for errors. In addition to a |
code and a human-friendly
message, may also includes the token
stem as well as other fields.
|Interface ||Description |
|Skeleton ||An object representation of a parsed string skeleton, with token values grouped by type. |