{"_id":"messageformat-date-skeleton","_rev":"289763","name":"messageformat-date-skeleton","description":"A parser & formatter for ICU DateFormat skeleton strings","dist-tags":{"latest":"0.1.1"},"maintainers":[{"name":"eemeli","email":"eemeli@gmail.com"}],"time":{"modified":"2021-06-03T18:48:01.000Z","created":"2020-03-08T20:41:43.434Z","0.1.1":"2020-04-04T12:37:38.171Z","0.1.0":"2020-03-08T20:41:43.434Z"},"users":{},"author":{"name":"Eemeli Aro","email":"eemeli@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/messageformat/skeletons.git","directory":"packages/date-skeleton"},"versions":{"0.1.1":{"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":{"shasum":"63ccd6ef39ebd2fc664732e854ddc56877960ec1","size":7600,"noattachment":false,"key":"/messageformat-date-skeleton/-/messageformat-date-skeleton-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/messageformat-date-skeleton/download/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,"publish_time":1586003858171,"_cnpm_publish_time":1586003858171},"0.1.0":{"name":"messageformat-date-skeleton","version":"0.1.0","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/tree/master/packages/date-skeleton","repository":{"type":"git","url":"git+https://github.com/messageformat/skeletons.git","directory":"packages/date-skeleton"},"type":"module","main":"lib/index.js","scripts":{"build":"tsc -d","predocs":"npm run build","docs:extract":"api-extractor run --local --verbose","docs:markdown":"api-documenter markdown -i temp/ -o docs/","docs":"npm run docs:extract && npm run docs:markdown","postdocs":"node ../../scripts/build-readme","clean":"git clean -fdxe node_modules","prettier":"prettier --write src/*","test":"jest"},"prettier":{"semi":false,"singleQuote":true},"babel":{"presets":[["@babel/preset-env",{"targets":{"node":"current"}}],"@babel/preset-typescript"]},"jest":{"collectCoverage":true,"resolver":"jest-ts-webcompat-resolver"},"devDependencies":{"@babel/core":"^7.7.4","@babel/preset-env":"^7.7.4","@babel/preset-typescript":"^7.7.4","@microsoft/api-documenter":"^7.7.1","@microsoft/api-extractor":"^7.7.0","@types/jest":"^24.0.23","babel-jest":"^24.9.0","jest":"^24.9.0","jest-ts-webcompat-resolver":"^1.0.0","prettier":"^1.19.1","typescript":"^3.7.2"},"bugs":{"url":"https://github.com/messageformat/skeletons/issues"},"_id":"messageformat-date-skeleton@0.1.0","_nodeVersion":"13.10.1","_npmVersion":"6.14.2","dist":{"shasum":"3783fad75768a0e975e81342edc2fe70d0039abe","size":6400,"noattachment":false,"key":"/messageformat-date-skeleton/-/messageformat-date-skeleton-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/messageformat-date-skeleton/download/messageformat-date-skeleton-0.1.0.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.0_1583700103313_0.11477851247303028"},"_hasShrinkwrap":false,"publish_time":1583700103434,"_cnpm_publish_time":1583700103434}},"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>","_attachments":{},"homepage":"https://github.com/messageformat/skeletons/tree/master/packages/date-skeleton#readme","bugs":{"url":"https://github.com/messageformat/skeletons/issues"},"license":"MIT"}