A parser and formatter for ICU DateFormat skeleton strings, version 0.1.1, released as an ES module only. It provides functions to parse date skeletons into tokens, create date formatters using Intl.DateTimeFormat, and generate formatter source code. Unlike ICU DateFormat pattern strings, it only supports skeletons (not positional patterns) since they map directly to Intl.DateTimeFormat options. Suitable for use in messageformat or standalone date formatting with locale support.
npm install messageformat-date-skeletonNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Parses an ICU DateFormat skeleton and creates a formatter using Intl.DateTimeFormat with locale en-US.
Use only skeleton strings per ICU specification.
Use getDateFormatter for a function object, or evaluate the source via eval/Function constructor.
Use import() for CommonJS or set module resolution appropriately.
Add "type": "module" to package.json or use dynamic import().
Use import { getDateFormatter } from 'messageformat-date-skeleton' in an ESM context.Use skeleton format: e.g., 'yMd', 'yMMMd' etc.
No dependency data recorded yet.