{"versions":{"1.0.0-beta.1":{"name":"@messageformat/number-skeleton","version":"1.0.0-beta.1","description":"A parser & formatter for ICU NumberFormat skeleton strings & patterns","keywords":["icu","messageformat","numberformatter","skeleton","parser","formatter"],"author":{"name":"Eemeli Aro","email":"eemeli@gmail.com"},"license":"MIT","homepage":"https://github.com/messageformat/messageformat/tree/master/packages/number-skeleton#readme","repository":{"type":"git","url":"git+https://github.com/messageformat/messageformat.git","directory":"packages/number-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/number-skeleton@1.0.0-beta.1","_nodeVersion":"14.7.0","_npmVersion":"lerna/3.22.1/node@v14.7.0+x64 (darwin)","dist":{"integrity":"sha512-vEosYy7en3xbzigvC6LVB0w8AynjhwE4IeyRh4heskbCkU0RyrZpuj3y4wunzOjhef3PohYzUQeAay5slN0pNA==","shasum":"30cb9867ccc37665a8690c26d0d42d4467e3fefe","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@messageformat/number-skeleton/-/number-skeleton-1.0.0-beta.1.tgz","fileCount":38,"unpackedSize":79115,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfw9feCRA9TVsSAnZWagAANM4P/2/9DDZrX6zujgkZtBht\nlrP36TGBEwJ+VtAsTRGI3B6OKoRm92ykpT+8jE593WFCZ/x7xTUW0XMebs44\nYhvYTQOsMUve8YpaMmGtGW3ikUvAY5ytlVUFWcVb3zawLyzsAOtPypQwx80C\n81CGcvtNYAGrKYc6rBOy2KK4yKmG5xrfXc+q6i6fC7DqfklODmwFCPo0GSjI\n9NmPLZ7IZpn0OdgH28tvTrmqKpuQiHsyXs7m76VmHXkkF5LZZEtOR9ELOcaJ\nhsCkwBxZ3ry7DlpA6bt5bKdJ+hqjhkppomNJKdfAvTxHmo/nL4jPol6XZK9/\nNJi4J9T6x8n3d1z+hQFdsFP2j4fRTdNraC8lZZMzC4wgapg4jnXIu8IrAbKG\nlmEOlFUtfxIqKYAic4/zRtJoyT4KK4eJTubcPsLzgm67ZpKiP5MktcVeXV6y\n86LLr+HeRuqD6Xn0sPH82Cen/p4V9S96Er0wPdPq6Xa2nFu54l+wo/rBImRt\nxs7sIAdXMM4fhJVBTa0zBkGdUp2Qd+R77wuYU+UTULqs7hSNSdiu16LbX/J1\nHu+TcFeJoJZkOcx7hXB3pifPiE2p6+RgPyiaG6oHSlRYZb2uKdUijItuD5/f\nqXMcG2dVRTnpZvTAuix9O0xk9+HqK4c8Omj1FdGRv3rZscwUe3ecLGCxx0k4\nczvi\r\n=tiNO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD4ossm7LPJIW/R/wodoon1o32JOPVw3RbXkG3Z5jAUjAIgTxnYD7HvRPA0JJM6XqIEjZZuXFRnctLru/oYouttAVw="}]},"_npmUser":{"name":"anonymous","email":"eemeli@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"eemeli@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/number-skeleton_1.0.0-beta.1_1606670302309_0.8436864556116659"},"_hasShrinkwrap":false,"contributors":[]},"1.0.0":{"name":"@messageformat/number-skeleton","version":"1.0.0","description":"A parser & formatter for ICU NumberFormat skeleton strings & patterns","keywords":["icu","messageformat","numberformatter","skeleton","parser","formatter"],"contributors":[{"name":"Eemeli Aro","email":"eemeli@gmail.com"}],"license":"MIT","homepage":"http://messageformat.github.io/messageformat/api/number-skeleton/","repository":{"type":"git","url":"git+https://github.com/messageformat/messageformat.git","directory":"packages/number-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/number-skeleton@1.0.0","_nodeVersion":"15.11.0","_npmVersion":"lerna/3.22.1/node@v15.11.0+x64 (darwin)","dist":{"integrity":"sha512-Pe1HX/VG0q7tclM/ri85I4FKYd7Uc3gluSZbRaK1+jcXdT9Biw2hLAKyMsiz2tM6zLiK1xX+K0NMDO4RIstQig==","shasum":"1864b8b65abbee57a02bc8ea67061aa132947af7","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@messageformat/number-skeleton/-/number-skeleton-1.0.0.tgz","fileCount":38,"unpackedSize":79467,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgnRWECRA9TVsSAnZWagAApHAP/1OI3e19+zwGv5ePD+SQ\nCqX6cz4knx9RYJLmz51Eu+mkWNQGSFw/+PT85d7JRl/yrRl7py9MtiNlEJ+5\nJJSk2GRIc2s3/j4YLr25B3GtCTlxO/H7+ngo9ifHjnssRaWs2mVUPw9MxS4c\navBe9x1//YB8HLalZnZNu8h8FsmZjFx252ZYdmYxZoN4HaKe5HHPHlKj3UzY\nPO67Xq/b6/HScfYTVqd3pXvR5Afq9B7isUM4mhvXSDLPZVZdVSASQiFYCZUB\n4b4gkXMSgmzrwDv4Ne6Xzarzse4g5iG2drhLbtZFUKM/lzpR4xglvGhKCEvs\nDN4h29Fk5OFi5nKPdbEaZsliUv1Mr/R9bZpLOeH7ISchu46fS7S2xykwa3Jr\n2t9zaTuYmOLffvg/OEmI068j2YfKd6202HUYrW72fRbg8nYcqxSwuGc28KWq\n4shQbwkVWqDFJgOXDcX7MK/bUzHngpxuUrfL0D7ze8grqdHT9H3vPPeyJqVS\nrSsUt+kxjoL+k+NT8xjhaAvm+7ydOGkBM4NeeEMfq6sbOIMjRJv1ypMDgGTt\notsWTK1u/ey/Y8pqx1PrCoDvyNZ7dsIgaYywv9lD10Qxya8aw+deIGW9flJm\nw5HuZ/f1F6PhMbQtDxELCdXYEgA4HbyspEG5D8DYxPveU4EISJloYi2c3rBm\nxhIm\r\n=cqH/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG0+a33bIWOCJwMN16y7cyZbUj0WC+scgoDL8ku2Mq21AiEAuXEhGrstPPU6qf00G45Wc5FIpGGVWWcOdnxzA1HKEuc="}]},"_npmUser":{"name":"anonymous","email":"eemeli@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"eemeli@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/number-skeleton_1.0.0_1620907395998_0.4322653489857098"},"_hasShrinkwrap":false},"1.1.0":{"name":"@messageformat/number-skeleton","version":"1.1.0","description":"A parser & formatter for ICU NumberFormat skeleton strings & patterns","keywords":["icu","messageformat","numberformatter","skeleton","parser","formatter"],"contributors":[{"name":"Eemeli Aro","email":"eemeli@gmail.com"}],"license":"MIT","homepage":"http://messageformat.github.io/messageformat/api/number-skeleton/","repository":{"type":"git","url":"git+https://github.com/messageformat/messageformat.git","directory":"packages/number-skeleton"},"type":"module","main":"lib/index.js","scripts":{"build":"tsc --project tsconfig.build.json","extract-api":"api-extractor run --verbose"},"types":"./lib/index.d.ts","gitHead":"ccc54e801761fcb1796d0b283cc3036e4f539d21","bugs":{"url":"https://github.com/messageformat/messageformat/issues"},"_id":"@messageformat/number-skeleton@1.1.0","_nodeVersion":"18.3.0","_npmVersion":"8.14.0","dist":{"integrity":"sha512-F0Io+GOSvFFxvp9Ze3L5kAoZ2NnOAT0Mr/jpGNd3fqo8A0t4NxNIAcCdggtl2B/gN2ErkIKSBVPrF7xcW1IGvA==","shasum":"eb636738da8abbd35ccbeb84f7d84d63302aeb61","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@messageformat/number-skeleton/-/number-skeleton-1.1.0.tgz","fileCount":37,"unpackedSize":77464,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB7/eFCsTaJhsx3gt9vy/3BUl0hoYo7Y0+4AB8YD3sEhAiEAxz+eyKDoD92fQM298f644aG3aiEOpLTylLbKlQV1GhY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi0wZUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpkfw//YLUsZIYq1Geb4v4vaaxCQy+N3vkaNqoPQiVPjT9LZq5Gp73z\r\nrMGAowGFoHxfGToRMaNtEsUJF0g5HhTnAMzKjr0/zdA+Q3Z6Tj2fsp6m7+Lw\r\nMwXNNLzNnU/CmrM1Y7lFsJjC6Qf5q/bl/2REIEN7+U+J43rKl8CfP15r4DRP\r\nbFuqNzhevTgNCXhEgpNq9UzZjpJ5thBthnhvhErp8yhqW8YQQ8ydRnU+H2xf\r\nIUV6YkWkieugO6P0uLPb9reUNCj5k9BUuByaiZkwSD26yLpfwMJ4W/Qr/Z5C\r\nwnlWHgqf10tGMDOpJu/fIYMU6nQsPWJbrBNDt2zoPXt9s6oclzvkM519NOfc\r\ntVMbAEiJobGvTVwp1YBFyUiQutzbUF40dY6nvgy93sxdJbSvoZVQZZ/nqipC\r\npqsVXeGXsDoPH1R8Cccr1iLoxdbhnGsv56nUZ7r4LQ1zNod8H67KZ/ElC/tZ\r\n8hzg93JqCPntp7E/oACGK36bRmTDeq+IzbNywJ1qQzESdWdDzoTowk2diDnr\r\nZNSaEkPfOS7YMlfgst48FS+8J6cm+UKPNXuitQeIv+nS3+Kp/iFbxg6E8BBa\r\n3zKkWnUGZ/w0eTUazBg/ONiOEQ2RxU7Xe+UcvdDA+JHRc+CQjk0ryf0aS1tT\r\nrVkWPFky6r2n8Siabp14Uoq4fnoLH/d81hE=\r\n=f60F\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"anonymous","email":"eemeli@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"eemeli@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/number-skeleton_1.1.0_1657996884072_0.593402616134489"},"_hasShrinkwrap":false},"1.2.0":{"name":"@messageformat/number-skeleton","version":"1.2.0","description":"A parser & formatter for ICU NumberFormat skeleton strings & patterns","keywords":["icu","messageformat","numberformatter","skeleton","parser","formatter"],"contributors":[{"name":"Eemeli Aro","email":"eemeli@gmail.com"}],"license":"MIT","homepage":"http://messageformat.github.io/messageformat/api/number-skeleton/","repository":{"type":"git","url":"git+https://github.com/messageformat/messageformat.git","directory":"packages/number-skeleton"},"type":"module","main":"lib/index.js","scripts":{"build":"tsc --project tsconfig.build.json","extract-api":"api-extractor run --verbose"},"types":"./lib/index.d.ts","gitHead":"44858ea570fe83035377ad107148879c02d41463","bugs":{"url":"https://github.com/messageformat/messageformat/issues"},"_id":"@messageformat/number-skeleton@1.2.0","_nodeVersion":"19.8.1","_npmVersion":"9.5.1","dist":{"integrity":"sha512-xsgwcL7J7WhlHJ3RNbaVgssaIwcEyFkBqxHdcdaiJzwTZAWEOD8BuUFxnxV9k5S0qHN3v/KzUpq0IUpjH1seRg==","shasum":"e7c245c41a1b2722bc59dad68f4d454f761bc9b4","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@messageformat/number-skeleton/-/number-skeleton-1.2.0.tgz","fileCount":38,"unpackedSize":78595,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC8y/sVs+by9Z5dpLbDQJjWAITDQaZdXYCnw0yPy6vjhQIhAMnJWeKlExyWmMmq6QBEzbSbjUaVURPtHN28t3MtOMiV"}]},"_npmUser":{"name":"anonymous","email":"eemeli@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"eemeli@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/number-skeleton_1.2.0_1685226230229_0.9574292297376565"},"_hasShrinkwrap":false},"2.0.0-0":{"name":"@messageformat/number-skeleton","version":"2.0.0-0","description":"A parser & formatter for ICU NumberFormat skeleton strings & patterns","keywords":["icu","messageformat","numberformatter","skeleton","parser","formatter"],"contributors":[{"name":"Eemeli Aro","email":"eemeli@gmail.com"}],"license":"MIT","homepage":"http://messageformat.github.io/messageformat/api/number-skeleton/","repository":{"type":"git","url":"git+https://github.com/messageformat/messageformat.git","directory":"packages/number-skeleton"},"type":"module","main":"lib/index.js","scripts":{"build":"tsc --project tsconfig.build.json","extract-api":"api-extractor run --verbose"},"_id":"@messageformat/number-skeleton@2.0.0-0","readmeFilename":"README.md","gitHead":"807f10b1ad34498658ff32717f603c592daff26c","types":"./lib/index.d.ts","bugs":{"url":"https://github.com/messageformat/messageformat/issues"},"_nodeVersion":"23.7.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-bDrIrVSKwn0sNrbU+N6tjwljV+Zl9pRCR/D9Xim6Q7lLzZ20nFYtuuKOZ3QKisN+vPxa9sTqu3ufJ+uwKNpHbQ==","shasum":"cbb72acbabd76f9258c16de3837ed96cd8b68f1f","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@messageformat/number-skeleton/-/number-skeleton-2.0.0-0.tgz","fileCount":31,"unpackedSize":75891,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIDWwyyjBcU/UDmC+7X85u3XrsEgdoqGxybM6zddNNBDlAiEAs302xN3ve4Mgl2qxcfIw7jIC8dOc/7oaYbcipIknvfg="}],"size":15833},"_npmUser":{"name":"anonymous","email":"eemeli@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"eemeli@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/number-skeleton_2.0.0-0_1742823008611_0.5513149612009502"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-03-24T13:30:08.875Z","publish_time":1742823008875,"_source_registry_name":"default"}},"dist-tags":{"latest":"1.2.0","next":"2.0.0-0"},"name":"@messageformat/number-skeleton","time":{"created":"2022-01-27T10:43:41.390Z","1.0.0-beta.1":"2020-11-29T17:18:22.446Z","modified":"2025-03-24T14:20:13.459Z","1.0.0":"2021-05-13T12:03:16.171Z","1.1.0":"2022-07-16T18:41:24.248Z","1.2.0":"2023-05-27T22:23:50.423Z","2.0.0-0":"2025-03-24T13:30:08.875Z"},"readme":"# @messageformat/number-skeleton\n\nTools for working with [ICU NumberFormat skeletons](https://github.com/unicode-org/icu/blob/master/docs/userguide/format_parse/numbers/skeletons.md) and [patterns](http://unicode.org/reports/tr35/tr35-numbers.html#Number_Format_Patterns)<!-- -->.\n\n```js\nimport {\n  getNumberFormatter,\n  getNumberFormatterSource,\n  NumberFormatError,\n  parseNumberPattern,\n  parseNumberSkeleton,\n  Skeleton, // TS only\n  Unit // TS only\n} from '@messageformat/number-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.NumberFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NumberFormat) internally, including features provided by the [Unified API Proposal](https://github.com/tc39/proposal-unified-intl-numberformat)<!-- -->.\n\n## Classes\n\n| Class                                                                                                                               | Description                                                                                                                                                                 |\n| ----------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| [NumberFormatError](https://github.com/messageformat/skeletons/blob/master/docs/messageformat-number-skeleton.numberformaterror.md) | Base class for errors. In addition to a <code>code</code> and a human-friendly <code>message</code>, may also includes the token <code>stem</code> as well as other fields. |\n\n## Functions\n\n| Function                                                                                                                                                                                | Description                                                                                                                                                                                                                                                                                                                        |\n| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| [getNumberFormatter(locales, skeleton, currency, onError)](https://github.com/messageformat/skeletons/blob/master/docs/messageformat-number-skeleton.getnumberformatter.md)             | Returns a number formatter function for the given locales and number skeleton                                                                                                                                                                                                                                                      |\n| [getNumberFormatterSource(locales, skeleton, currency, onError)](https://github.com/messageformat/skeletons/blob/master/docs/messageformat-number-skeleton.getnumberformattersource.md) | Returns a string of JavaScript source that evaluates to a number formatter function with the same <code>(value: number) =&gt; string</code> signature as the function returned by [getNumberFormatter()](https://github.com/messageformat/skeletons/blob/master/docs/messageformat-number-skeleton.getnumberformatter.md)<!-- -->. |\n| [parseNumberPattern(src, currency, onError)](https://github.com/messageformat/skeletons/blob/master/docs/messageformat-number-skeleton.parsenumberpattern.md)                           | Parse an [ICU NumberFormatter pattern](http://unicode.org/reports/tr35/tr35-numbers.html#Number_Format_Patterns) string into a [Skeleton](https://github.com/messageformat/skeletons/blob/master/docs/messageformat-number-skeleton.skeleton.md) structure.                                                                        |\n| [parseNumberSkeleton(src, onError)](https://github.com/messageformat/skeletons/blob/master/docs/messageformat-number-skeleton.parsenumberskeleton.md)                                   | Parse an [ICU NumberFormatter skeleton](https://github.com/unicode-org/icu/blob/master/docs/userguide/format_parse/numbers/skeletons.md) string into a [Skeleton](https://github.com/messageformat/skeletons/blob/master/docs/messageformat-number-skeleton.skeleton.md) structure.                                                |\n\n## Interfaces\n\n| Interface                                                                                                         | Description                                                                              |\n| ----------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |\n| [Skeleton](https://github.com/messageformat/skeletons/blob/master/docs/messageformat-number-skeleton.skeleton.md) | An object representation of a parsed string skeleton, with token values grouped by type. |\n\n## Type Aliases\n\n| Type Alias                                                                                                | Description                                                                                                                |\n| --------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- |\n| [Unit](https://github.com/messageformat/skeletons/blob/master/docs/messageformat-number-skeleton.unit.md) | Measurement units defined by the [Unicode CLDR](https://github.com/unicode-org/cldr/blob/d4d77a2/common/validity/unit.xml) |\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>","users":{}}