{"_id":"@messageformat/date-skeleton","_rev":"3681445","name":"@messageformat/date-skeleton","description":"A parser & formatter for ICU DateFormat skeleton strings","dist-tags":{"latest":"1.1.0"},"maintainers":[{"name":"eemeli","email":"eemeli@gmail.com"}],"time":{"modified":"2025-02-13T05:44:02.000Z","created":"2020-11-29T17:18:22.153Z","1.1.0":"2024-10-02T17:57:04.823Z","1.0.1":"2022-07-16T18:41:44.045Z","1.0.0":"2021-05-13T12:03:16.147Z","1.0.0-beta.1":"2020-11-29T17:18:22.153Z"},"users":{},"repository":{"type":"git","url":"git+https://github.com/messageformat/messageformat.git","directory":"packages/date-skeleton"},"versions":{"1.1.0":{"name":"@messageformat/date-skeleton","version":"1.1.0","description":"A parser & formatter for ICU DateFormat skeleton strings","keywords":["icu","messageformat","dateformat","skeleton","parser","formatter"],"contributors":[{"name":"Eemeli Aro","email":"eemeli@gmail.com"}],"license":"MIT","homepage":"http://messageformat.github.io/messageformat/api/date-skeleton/","repository":{"type":"git","url":"git+https://github.com/messageformat/messageformat.git","directory":"packages/date-skeleton"},"type":"module","main":"lib/index.js","scripts":{"build":"tsc --project tsconfig.build.json","extract-api":"api-extractor run --verbose"},"_id":"@messageformat/date-skeleton@1.1.0","gitHead":"97dbedbbe91e192ab616dc09595f11f2e4e56fb6","types":"./lib/index.d.ts","bugs":{"url":"https://github.com/messageformat/messageformat/issues"},"_nodeVersion":"22.8.0","_npmVersion":"10.8.2","dist":{"shasum":"3bad068cbf5873d14592cfc7a73dd4d8615e2739","size":6226,"noattachment":false,"key":"/@messageformat/date-skeleton/-/@messageformat/date-skeleton-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@messageformat/date-skeleton/download/@messageformat/date-skeleton-1.1.0.tgz"},"_npmUser":{"name":"eemeli","email":"eemeli@gmail.com"},"directories":{},"maintainers":[{"name":"eemeli","email":"eemeli@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/date-skeleton_1.1.0_1727891824652_0.668430840986564"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-10-02T17:57:04.823Z","publish_time":1727891824823,"_source_registry_name":"default","_cnpm_publish_time":1727891824823},"1.0.1":{"name":"@messageformat/date-skeleton","version":"1.0.1","description":"A parser & formatter for ICU DateFormat skeleton strings","keywords":["icu","messageformat","dateformat","skeleton","parser","formatter"],"contributors":[{"name":"Eemeli Aro","email":"eemeli@gmail.com"}],"license":"MIT","homepage":"http://messageformat.github.io/messageformat/api/date-skeleton/","repository":{"type":"git","url":"git+https://github.com/messageformat/messageformat.git","directory":"packages/date-skeleton"},"type":"module","main":"lib/index.js","scripts":{"build":"tsc --project tsconfig.build.json","extract-api":"api-extractor run --verbose"},"types":"./lib/index.d.ts","gitHead":"ccc54e801761fcb1796d0b283cc3036e4f539d21","bugs":{"url":"https://github.com/messageformat/messageformat/issues"},"_id":"@messageformat/date-skeleton@1.0.1","_nodeVersion":"18.3.0","_npmVersion":"8.14.0","dist":{"shasum":"980b8babe21a11433b6e1e8f6dc8c4cae4f5f56b","size":6156,"noattachment":false,"key":"/@messageformat/date-skeleton/-/@messageformat/date-skeleton-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@messageformat/date-skeleton/download/@messageformat/date-skeleton-1.0.1.tgz"},"_npmUser":{"name":"eemeli","email":"eemeli@gmail.com"},"directories":{},"maintainers":[{"name":"eemeli","email":"eemeli@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/date-skeleton_1.0.1_1657996903884_0.9572232860347709"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-07-16T18:41:49.412Z","publish_time":1657996904045,"_cnpm_publish_time":1657996904045},"1.0.0":{"name":"@messageformat/date-skeleton","version":"1.0.0","description":"A parser & formatter for ICU DateFormat skeleton strings","keywords":["icu","messageformat","dateformat","skeleton","parser","formatter"],"contributors":[{"name":"Eemeli Aro","email":"eemeli@gmail.com"}],"license":"MIT","homepage":"http://messageformat.github.io/messageformat/api/date-skeleton/","repository":{"type":"git","url":"git+https://github.com/messageformat/messageformat.git","directory":"packages/date-skeleton"},"type":"module","main":"lib/index.js","scripts":{"build":"tsc","extract-api":"api-extractor run --local --verbose"},"gitHead":"33ca9027809512d85bd7d212957afb85e7dd39c4","bugs":{"url":"https://github.com/messageformat/messageformat/issues"},"_id":"@messageformat/date-skeleton@1.0.0","_nodeVersion":"15.11.0","_npmVersion":"lerna/3.22.1/node@v15.11.0+x64 (darwin)","dist":{"shasum":"a3bc22f0943b7f2871980cf2d7aa870195f19b06","size":6597,"noattachment":false,"key":"/@messageformat/date-skeleton/-/@messageformat/date-skeleton-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@messageformat/date-skeleton/download/@messageformat/date-skeleton-1.0.0.tgz"},"_npmUser":{"name":"eemeli","email":"eemeli@gmail.com"},"directories":{},"maintainers":[{"name":"eemeli","email":"eemeli@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/date-skeleton_1.0.0_1620907395989_0.1825535850084501"},"_hasShrinkwrap":false,"publish_time":1620907396147,"_cnpm_publish_time":1620907396147},"1.0.0-beta.1":{"name":"@messageformat/date-skeleton","version":"1.0.0-beta.1","description":"A parser & formatter for ICU DateFormat skeleton strings","keywords":["icu","messageformat","dateformat","skeleton","parser","formatter"],"author":{"name":"Eemeli Aro","email":"eemeli@gmail.com"},"license":"MIT","homepage":"https://github.com/messageformat/messageformat/tree/master/packages/date-skeleton#readme","repository":{"type":"git","url":"git+https://github.com/messageformat/messageformat.git","directory":"packages/date-skeleton"},"type":"module","main":"lib/index.js","scripts":{"build":"tsc","extract-api":"api-extractor run --local --verbose"},"gitHead":"af63ee0186c6f9ac2255da2ad476fd3d74cfa6ed","bugs":{"url":"https://github.com/messageformat/messageformat/issues"},"_id":"@messageformat/date-skeleton@1.0.0-beta.1","_nodeVersion":"14.7.0","_npmVersion":"lerna/3.22.1/node@v14.7.0+x64 (darwin)","dist":{"shasum":"7e01df7dae626d38004966591e9d4d2e4b90fd63","size":6571,"noattachment":false,"key":"/@messageformat/date-skeleton/-/@messageformat/date-skeleton-1.0.0-beta.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@messageformat/date-skeleton/download/@messageformat/date-skeleton-1.0.0-beta.1.tgz"},"_npmUser":{"name":"eemeli","email":"eemeli@gmail.com"},"directories":{},"maintainers":[{"name":"eemeli","email":"eemeli@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/date-skeleton_1.0.0-beta.1_1606670302006_0.505944296126426"},"_hasShrinkwrap":false,"publish_time":1606670302153,"_cnpm_publish_time":1606670302153}},"readme":"# @messageformat/date-skeleton\n\nTools for working with [ICU DateFormat skeletons](http://userguide.icu-project.org/formatparse/datetime)<!-- -->.\n\n```js\nimport {\n  DateFormatError,\n  DateToken, // TS only\n  getDateFormatter,\n  getDateFormatterSource,\n  parseDateTokens\n} from '@messageformat/date-skeleton';\n```\n\nThe 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](https://www.npmjs.com/package/esm)<!-- -->.\n\nUses [Intl.DateTimeFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat) internally. Position-dependent ICU DateFormat [patterns](https://unicode.org/reports/tr35/tr35-dates.html#Date_Format_Patterns) are not supported, as they cannot be represented with Intl.DateTimeFormat options.\n\n## Classes\n\n| Class                                                                                               | Description              |\n| --------------------------------------------------------------------------------------------------- | ------------------------ |\n| [DateFormatError](https://messageformat.github.io/messageformat/api/date-skeleton.dateformaterror/) | Parent class for errors. |\n\n## Functions\n\n| Function                                                                                                                                              | Description                                                                                                                                                                                                                                                                                                                                            |\n| ----------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |\n| [getDateFormatter(locales, tokens, onError)](https://messageformat.github.io/messageformat/api/date-skeleton.getdateformatter/)                       | Returns a date formatter function for the given locales and date skeleton                                                                                                                                                                                                                                                                              |\n| [getDateFormatter(locales, tokens, timeZone, onError)](https://messageformat.github.io/messageformat/api/date-skeleton.getdateformatter/)             | Returns a date formatter function for the given locales and date skeleton with time zone overrride.                                                                                                                                                                                                                                                    |\n| [getDateFormatterSource(locales, tokens, onError)](https://messageformat.github.io/messageformat/api/date-skeleton.getdateformattersource/)           | Returns a string of JavaScript source that evaluates to a date formatter function with the same <code>(date: Date &#124; number) =&gt; string</code> signature as the function returned by [getDateFormatter()](https://github.com/messageformat/messageformat/blob/main/docs/api/date-skeleton.getdateformatter.md)<!-- -->.                          |\n| [getDateFormatterSource(locales, tokens, timeZone, onError)](https://messageformat.github.io/messageformat/api/date-skeleton.getdateformattersource/) | Returns a string of JavaScript source that evaluates to a date formatter function with the same <code>(date: Date &#124; number) =&gt; string</code> signature as the function returned by [getDateFormatter()](https://github.com/messageformat/messageformat/blob/main/docs/api/date-skeleton.getdateformatter.md) with time zone override <!-- -->. |\n| [parseDateTokens(src)](https://messageformat.github.io/messageformat/api/date-skeleton.parsedatetokens/)                                              | Parse an [ICU DateFormat skeleton](http://userguide.icu-project.org/formatparse/datetime) string into a [DateToken](https://github.com/messageformat/messageformat/blob/main/docs/api/date-skeleton.datetoken.md) array.                                                                                                                               |\n\n## Type Aliases\n\n| Type Alias                                                                              | Description                                              |\n| --------------------------------------------------------------------------------------- | -------------------------------------------------------- |\n| [DateToken](https://messageformat.github.io/messageformat/api/date-skeleton.datetoken/) | An object representation of a parsed date skeleton token |\n\n---\n\n[Messageformat] is an OpenJS Foundation project, and we follow its [Code of Conduct].\n\n[messageformat]: https://messageformat.github.io/\n[code of conduct]: https://code-of-conduct.openjsf.org/\n\n<a href=\"https://openjsf.org\">\n<img width=200 alt=\"OpenJS Foundation\" src=\"https://messageformat.github.io/messageformat/logo/openjsf.svg\" />\n</a>\n","_attachments":{},"homepage":"http://messageformat.github.io/messageformat/api/date-skeleton/","bugs":{"url":"https://github.com/messageformat/messageformat/issues"},"license":"MIT"}