{"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":{"integrity":"sha512-vvj5Sd3VyXUHGbYpiFsPsSQ8pkdUM9vrR/NUbyP6ga3UqJH4p9eCwzfwaCAZatZMYMTyiKG/8QbUyGKHeTZ5kw==","shasum":"a3bc22f0943b7f2871980cf2d7aa870195f19b06","tarball":"http://registry-npm.ywwl.com/@messageformat/date-skeleton/download/@messageformat/date-skeleton-1.0.0.tgz","fileCount":12,"unpackedSize":27796,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgnRWECRA9TVsSAnZWagAAEO4P/02fx9hyI2c3PGy0szO+\nhjdurXISokvyzNakWbYgXyaEOXDCfBUTrAFbaQayDN6psNklb+85XQEOu7Xn\nYXpr22TqnKBzZ4ZcW18WzKi2VNvglxv/J89nc+ZblKzpl8dxelHxkEVnb4Yx\nhJZHwdmKwqGFrmakEHwK6cBsWxH4qJnnSb6uoYddZ8OE/HhuH6GMb59G7R3T\nfTA9Sq/3c3AMj4JsdL5sIDUnkLbbQHS6mAZolOS7PjEkxPENRJZ4V3HrE2pP\n2Ys0FXkRkoIY9RpdwVqlmCee4To/WBZPhVnfbnymRdllSHmeRmox3j3UDTxO\nivp0Zz2J+LSM8w2qxYI1OWtpwZ0Ie/3ykRN/8zBxK2PuHAqZMSFmZzWkXhXx\nd++0xObKAGQbn+PXXFkA/0hlmmWewNEIFYSOBU+wJ8rzCQ7SsuTJYZTQLeXA\nqfw6fiUIGgJmO1IDnDEfHHSlbDiOGwDjxw96aG5SPjGaEkMhRb0I4prF4j6n\naCioHYzXehba3e2WnnUXc6UlLeuqLYmU52v0N7bwTakvydGOXtj37rjzoLAC\nQNRwqrZ0My0EIBC0ug3hacFZ+LNhU+mCWuKaatdLUksmTKRN9oZjtm7HsjFo\nSw1A+vkcTb9Cyp8woOVNli/y2PhItN+xgBIffHSbSkEqOJthyXVoFXUO8xxK\nf6rF\r\n=QCyF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEqKGzcKNB5D1vIZm9y7TUVssQqxCLh9zxBAFf6jTQvwAiA1favwKjBhFTYUGgFQDL3tfcjTmq8ezj3rtuL3rRVH4w=="}],"size":6597,"noattachment":false,"key":"/@messageformat/date-skeleton/-/@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,"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://github.com/messageformat/skeletons/blob/master/docs/messageformat-date-skeleton.dateformaterror.md) | Parent class for errors. |\n\n## Functions\n\n| Function                                                                                                                                                              | Description                                                                                                                                                                                                                                                                                                                           |\n| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| [getDateFormatter(locales, tokens, onError)](https://github.com/messageformat/skeletons/blob/master/docs/messageformat-date-skeleton.getdateformatter.md)             | Returns a date formatter function for the given locales and date skeleton                                                                                                                                                                                                                                                             |\n| [getDateFormatterSource(locales, tokens, onError)](https://github.com/messageformat/skeletons/blob/master/docs/messageformat-date-skeleton.getdateformattersource.md) | 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/skeletons/blob/master/docs/messageformat-date-skeleton.getdateformatter.md)<!-- -->. |\n| [parseDateTokens(src)](https://github.com/messageformat/skeletons/blob/master/docs/messageformat-date-skeleton.parsedatetokens.md)                                    | Parse an [ICU DateFormat skeleton](http://userguide.icu-project.org/formatparse/datetime) string into a [DateToken](https://github.com/messageformat/skeletons/blob/master/docs/messageformat-date-skeleton.datetoken.md) array.                                                                                                      |\n\n## Type Aliases\n\n| Type Alias                                                                                                        | Description                                              |\n| ----------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------- |\n| [DateToken](https://github.com/messageformat/skeletons/blob/master/docs/messageformat-date-skeleton.datetoken.md) | 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://github.com/openjs-foundation/cross-project-council/blob/master/CODE_OF_CONDUCT.md\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","publish_time":1620907396147,"_cnpm_publish_time":1620907396147,"dist-tags":{"latest":"1.1.0","next":"2.0.0-0"}}