{"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":{"integrity":"sha512-W64xKBMSJHwuKrNM4/URtqtXFnCKxdZW8WTTUnfCGzYl1ZcAiWfcMYcZOUmqo6niVBOyPBiMIzKXCc8+zZ1vGQ==","shasum":"7e01df7dae626d38004966591e9d4d2e4b90fd63","tarball":"http://registry-npm.ywwl.com/@messageformat/date-skeleton/download/@messageformat/date-skeleton-1.0.0-beta.1.tgz","fileCount":12,"unpackedSize":27668,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfw9feCRA9TVsSAnZWagAAg6gQAJRSdQ7/s2MmiQRaZohx\n7Kjr2oKHi5SzGPI6eO1E8mmpUmh7cWDLQPWv++us6BFX+wBn+IQsqbOQ3U8z\nzZzsX3IIWeKiG0oi+nJrmB4wtPdetzgY7vtEnfu4/4wk4YR74zgvwV+Ft+90\n5Sxvzq9XcGkoohDPFNZ76/Weh+6gQUnsAKDP6y/tnjBJ7IuhYc0oxaU1H3X5\nqb4czZVxGbxZRzsSWWZQux79TNOqzxfULgMfe60FJUwyDZd31eifSA1XDmwV\nyr+O2NV0onZdTMDmRfQ2+DhRnaojiHk0cQdX8dzGBoruSjKJRFjU6zuhxzSL\nLZwCfeeP2H8r3iBaP6mCEos4KEWinmb/m5jF9Kj70bffTh4oJYvqMSgMWy/9\nHMYdG6NTvKc1vE66P22sk/qjVcxTs0uP9Y3Ak2cvSLFoeSGTKKy6ZV46QZOK\nPkLt/1LxxslUXOB37JDQPEPyNOXSVp+XVyuQPNKyVzw5s9BYmJD2vXzTLoTl\ngTlx2GaLhLohHBc5Qjc2Sb+NJbprejyhl8uGW9HTpGD/oJP3xBU5fTSTDwQG\nkur6tONEJ7DDzje7PEzyga6vY52TigAEHBW7mghmqn5lNnDx3Frbx4204bcu\nxauoucC/6Oxhl8EuJbISDi+J4hpkVC+Ci9wHd26FtmQl2YfW61z0OE2OAepZ\nG+qg\r\n=mHQc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHp6odEI+yRUPRiMqaYXAOX7NUnGZXNAhl/9VZ1eA+xiAiAWDaVY60mxKSDYBhvV4rVK9iUgBhawIrZUQ3j53rl61g=="}],"size":6571,"noattachment":false,"key":"/@messageformat/date-skeleton/-/@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,"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":1606670302153,"_cnpm_publish_time":1606670302153,"dist-tags":{"latest":"1.1.0","next":"2.0.0-0"}}