{"name":"@formatjs/icu-messageformat-parser","version":"3.5.9","license":"MIT","_id":"@formatjs/icu-messageformat-parser@3.5.9","maintainers":[{"name":"longlho","email":"holevietlong@gmail.com"},{"name":"redonkulus","email":"seth@bertalotto.net"},{"name":"pyrocat","email":"dinglinjie+npm@gmail.com"}],"homepage":"https://github.com/formatjs/formatjs#readme","bugs":{"url":"https://github.com/formatjs/formatjs/issues"},"dist":{"shasum":"f209be4966d480975e36d864d27392542a4501d1","tarball":"http://registry-npm.ywwl.com/@formatjs/icu-messageformat-parser/download/@formatjs/icu-messageformat-parser-3.5.9.tgz","fileCount":15,"integrity":"sha512-PZm6O9JI/gUPtQV9r2eaMuLb4yWqV2vz+ot03ORHWTKO343LSpZi0TqeXLB2ZZGDXLCw2SbfgsQ0GxoxXMl79g==","signatures":[{"sig":"MEYCIQCGcYaUZ7JjhsiqELxGjXUvcxOqEY0xfnAt7Y3InP3YkAIhAPtw4RtDiByfFXJimC6xjo5DlvYFVk6VO5mDoGWu/B05","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@formatjs%2ficu-messageformat-parser@3.5.9","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":238037,"size":45561,"noattachment":false,"key":"/@formatjs/icu-messageformat-parser/-/@formatjs/icu-messageformat-parser-3.5.9.tgz"},"type":"module","_from":"file:formatjs-icu-messageformat-parser-3.5.9.tgz","types":"index.d.ts","exports":{".":"./index.js","./printer.js":"./printer.js","./no-parser.js":"./no-parser.js","./manipulator.js":"./manipulator.js"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:2ff40ed5-09d6-4e19-ae92-f55ae4236d52"}},"_resolved":"/tmp/1b3dc18422242085afc8b159388a80be/formatjs-icu-messageformat-parser-3.5.9.tgz","_integrity":"sha512-PZm6O9JI/gUPtQV9r2eaMuLb4yWqV2vz+ot03ORHWTKO343LSpZi0TqeXLB2ZZGDXLCw2SbfgsQ0GxoxXMl79g==","repository":{"url":"git+https://github.com/formatjs/formatjs.git","type":"git","directory":"packages/icu-messageformat-parser"},"_npmVersion":"11.11.0","description":"Hand-written ICU MessageFormat parser with compatible output as [`intl-messageformat-parser`](https://www.npmjs.com/package/intl-messageformat-parser) but 6 - 10 times as fast.","directories":{},"_nodeVersion":"24.14.1","dependencies":{"@formatjs/icu-skeleton-parser":"2.1.9"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/icu-messageformat-parser_3.5.9_1778816867370_0.2574287908685353","host":"s3://npm-registry-packages-npm-production"},"readme":"# MessageFormat Parser\n\nHand-written ICU MessageFormat parser with compatible output as\n[`intl-messageformat-parser`](https://www.npmjs.com/package/intl-messageformat-parser)\nbut 6 - 10 times as fast.\n\n## Benchmarks\n\n### JavaScript/TypeScript Parser\n\n```\n$ bazel run //packages/icu-messageformat-parser/benchmark:benchmark\ncomplex_msg AST length 2599\nnormal_msg AST length 400\nsimple_msg AST length 79\nstring_msg AST length 36\n\ncomplex_msg: 21.39 µs (48,112 ops/sec)\nnormal_msg:   3.10 µs (337,642 ops/sec)\nsimple_msg:   0.54 µs (1,910,194 ops/sec)\nstring_msg:   0.15 µs (7,461,955 ops/sec)\n```\n\n### Rust Parser (WASM)\n\nThe Rust parser (optimized build) is **2.3-3.5x faster** than the JavaScript parser:\n\n```\n$ bazel run -c opt //crates/icu_messageformat_parser:parser_bench -- --bench --output-format bencher\ncomplex_msg:  9.43 µs (2.27x faster than JS)\nnormal_msg:   1.18 µs (2.63x faster than JS)\nsimple_msg:   153 ns  (3.55x faster than JS)\nstring_msg:   59 ns   (2.47x faster than JS)\n```\n\nThe Rust parser is also faster than the SWC ICU MessageFormat parser in this\nbenchmark, ranging from 6% faster on `normal_msg` to 2.14x faster on\n`string_msg`.\n","publish_time":1778816867548,"_cnpm_publish_time":1778816867548,"dist-tags":{"latest":"3.5.23"}}