{"name":"messageformat-date-skeleton","version":"0.1.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/skeletons/tree/master/packages/date-skeleton#readme","repository":{"type":"git","url":"git+https://github.com/messageformat/skeletons.git","directory":"packages/date-skeleton"},"type":"module","main":"lib/index.js","scripts":{"build":"cd ../.. && npm run build:date","test":"cd ../.. && npm run test -- packages/date-skeleton"},"bugs":{"url":"https://github.com/messageformat/skeletons/issues"},"_id":"messageformat-date-skeleton@0.1.1","_nodeVersion":"13.10.1","_npmVersion":"6.14.2","dist":{"integrity":"sha512-YKH66KxGKZPRaZJYtfAHD1/oEMlfjPBcQEjVtOxjIKZ1VQ5SgeHrb5KVwgwEkNIpAaP6uvi6twbq1LpIlKvpvw==","shasum":"63ccd6ef39ebd2fc664732e854ddc56877960ec1","tarball":"http://registry-npm.ywwl.com/messageformat-date-skeleton/download/messageformat-date-skeleton-0.1.1.tgz","fileCount":14,"unpackedSize":30577,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeiH+SCRA9TVsSAnZWagAAq6EP/3xLcrPmTTMbE9xOtcRW\nkr2ioQwbvAA33YF0j2KJhA9XSMhvnio9oQyn1tYfCAOMxkivXIzh+ro8984a\n1AaXx4PNn1k+vMCZiGw23PZan2unXR6V5zQfzK1JELJaB9jLYSgiCLk9jalG\nkSyL0dnVfG7w2m2P5Dtot/fhSYGy2VcMbeuFlS4pU2bZZt3m9V2tT46A7W/o\n159Um69ZtApSY/eavH5ogMhhwgW2wYnj8TJnek6uH0VP7XGQBbczrKZFBTel\nm0IpN0GUQXW4NK+0oVljX9ieBi4o1JLeCGndDFUtp7qKLdgB6t34JZknnM/0\ngsMSUJ44rNXMzNjGhqYcgj1SeYwJIyTuZfAJyOHkxzl6u+yy2VErA3F4uM4j\n4fjrdToaabh3veC12nelyGcIX+CodZC4+wQ+smAKd8HVkeJAj25jKAgovP7V\nNTiK2KELDH6/Uxq7DmUqKi7gbAzLe5BpGfhaXlQZCWRsiVLajhTyACdF2bss\n4c2AiLIZsmhnqU12rf01kjCcNJMTuTBxPyV3CR/GPwuvcz5vhAh15jKggtxp\n4F/OMs2DE3qbzDN1+528s5rKAMQ8rTmgYEeT7XRevNtVC84jJAZGf8oYY1Jy\ngw3AV1PpHB6C3u0y9DIP8q83yINvtWH8zMKe3y0wY+vqquZWJTecaXsKgy51\nSCJq\r\n=lvEd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCvxGWGiXdJJ9dW3Bxm9qCtBZcYNNagodzXNu5A5FTosQIhALstmD5w9D3TJi5+0HA4HV5cpfwYvoNvZdlduIMFl7jT"}],"size":7600,"noattachment":false,"key":"/messageformat-date-skeleton/-/messageformat-date-skeleton-0.1.1.tgz"},"maintainers":[{"name":"eemeli","email":"eemeli@gmail.com"}],"_npmUser":{"name":"eemeli","email":"eemeli@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/messageformat-date-skeleton_0.1.1_1586003858024_0.5852478461108352"},"_hasShrinkwrap":false,"readme":"# messageformat-date-skeleton\r\n\r\nTools for working with [ICU DateFormat skeletons](http://userguide.icu-project.org/formatparse/datetime)<!-- -->.\r\n\r\n```js\r\nimport {\r\n  DateFormatError,\r\n  DateToken, // TS only\r\n  getDateFormatter,\r\n  getDateFormatterSource,\r\n  parseDateTokens\r\n} from 'messageformat-date-skeleton'\r\n\r\n```\r\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)<!-- -->.\r\n\r\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.\r\n\r\n## Classes\r\n\r\n|  Class | Description |\r\n|  --- | --- |\r\n|  [DateFormatError](https://github.com/messageformat/skeletons/blob/master/docs/messageformat-date-skeleton.dateformaterror.md) | Parent class for errors. |\r\n\r\n## Functions\r\n\r\n|  Function | Description |\r\n|  --- | --- |\r\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 |\r\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)<!-- -->. |\r\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. |\r\n\r\n## Type Aliases\r\n\r\n|  Type Alias | Description |\r\n|  --- | --- |\r\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>","publish_time":1586003858171,"_cnpm_publish_time":1586003858171,"dist-tags":{"latest":"0.1.1"}}