{"_id":"messageformat-date-skeleton","_rev":"2-fe0ad75a780cba98a13b26aeabd89677","name":"messageformat-date-skeleton","dist-tags":{"latest":"0.1.1"},"versions":{"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":{"integrity":"sha512-VayNnwZNgsXWY2WHsbHTGWIPYt3H45OOzEJXYBYTZiDJxj/zlpacxAdG4rUzh48mKRYwZY64+ljjnEUJ/zuBow==","shasum":"3783fad75768a0e975e81342edc2fe70d0039abe","tarball":"https://registry.npmjs.org/messageformat-date-skeleton/-/messageformat-date-skeleton-0.1.0.tgz","fileCount":12,"unpackedSize":24920,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeZViHCRA9TVsSAnZWagAAxcsP/0ixJ7t3NKl1YJoB/KcU\ng3+MN/vDPrAIanRqslTci02urbLV8xs0sSw7Tb616Hghrrz77tWBY8TeX0RK\n5UCzZyNCADacDWsHyEEp1uLneH1Yh+Y/zcIOSTPsuHTDRhvOD2Fj5JPF2f1d\ns3Xidf8dLiXLCApegCNEIah7MjkEhyz7rxHOb1T6sxNNhSvX/nrpDEsq9sal\nMKmI2+l52hQLK2S6a8ljVU7w7wT4qGdC9fkTv3syjAOhYjLO35YRhhE+vcv+\nfIgUAwFgnfwN2pvbe//RyZee/E3ZidN385aAfB6ed+gr27ptKDdTnzJS+gGh\nVlYPxKkUAga0zCB0o/4LIeGT9xYXjUsV/8UrjmNqTbDlHVEkaNoUvgpTOEf+\ni0E5liTajDZy/a1HMbfhgbuzuYcxBWiicQm/YOdzkE7/wclOGdht/PpKuKuG\n3rGrW+V6HwuzLdF2J0dYOeeDvRHou9GVHDr3MNIW2SwwrdItmmsvqf1s2TzK\n06tDmCo99AMwVeM0I0Iq82gYu9Lqw/BeKv0zxbbrIErDEL3zhaAXcHJbvf6E\nULbGiPF9FX5OkvfaemH+Sm2L5UsuEEnD6HOQsfafv1oq3eSuWRWXJjJqoWwV\ndU/JWaOlVeQqAVRbQwFBpmOOS5o7PX7vnyBoeI8H6sIuANh05SqpJvIbe6aa\n2ofS\r\n=GwNb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDf+6okFAamnrE3FgETdSIUVhi4Ub2qQ0hyoNSk4P1QrgIhAN+xYwtzuFGkz9fLeHkpVOruZc9Ocvgj+VdSxrUoYLoW"}]},"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},"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":{"integrity":"sha512-YKH66KxGKZPRaZJYtfAHD1/oEMlfjPBcQEjVtOxjIKZ1VQ5SgeHrb5KVwgwEkNIpAaP6uvi6twbq1LpIlKvpvw==","shasum":"63ccd6ef39ebd2fc664732e854ddc56877960ec1","tarball":"https://registry.npmjs.org/messageformat-date-skeleton/-/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"}]},"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}},"time":{"created":"2020-03-08T20:41:43.081Z","0.1.0":"2020-03-08T20:41:43.434Z","modified":"2022-05-09T04:49:55.279Z","0.1.1":"2020-04-04T12:37:38.171Z"},"maintainers":[{"name":"eemeli","email":"eemeli@gmail.com"}],"description":"A parser & formatter for ICU DateFormat skeleton strings","homepage":"https://github.com/messageformat/skeletons/tree/master/packages/date-skeleton#readme","keywords":["icu","messageformat","dateformat","skeleton","parser","formatter"],"repository":{"type":"git","url":"git+https://github.com/messageformat/skeletons.git","directory":"packages/date-skeleton"},"author":{"name":"Eemeli Aro","email":"eemeli@gmail.com"},"bugs":{"url":"https://github.com/messageformat/skeletons/issues"},"license":"MIT","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>","readmeFilename":"README.md"}