{"_id":"@dash0hq/lezer-promql","name":"@dash0hq/lezer-promql","dist-tags":{"latest":"0.302.1-dash03"},"versions":{"0.302.1-dash03":{"name":"@dash0hq/lezer-promql","version":"0.302.1-dash03","description":"lezer-based PromQL grammar","main":"dist/index.cjs","type":"module","exports":{"types":"./dist/index.d.ts","import":"./dist/index.es.js","require":"./dist/index.cjs"},"module":"dist/index.es.js","types":"dist/index.d.ts","author":{"name":"Prometheus Authors","email":"prometheus-developers@googlegroups.com"},"license":"Apache-2.0","repository":{"type":"git","url":"git+https://github.com/prometheus/prometheus.git"},"keywords":["lezer","promql"],"bugs":{"url":"https://github.com/prometheus/prometheus/issues"},"homepage":"https://github.com/prometheus/prometheus/blob/main/web/ui/module/lezer-promql/README.md","scripts":{"build":"bash ./build.sh","lint":"echo 'nothing to do'","test":"NODE_OPTIONS=--experimental-vm-modules jest"},"devDependencies":{"@lezer/generator":"^1.7.2","@lezer/highlight":"^1.2.0","@lezer/lr":"^1.4.2","@rollup/plugin-node-resolve":"^16.0.0"},"peerDependencies":{"@lezer/highlight":"^1.1.2","@lezer/lr":"^1.2.3"},"gitHead":"be137238be2fa3e7b031c42d4a9e30a62f22af6a","_id":"@dash0hq/lezer-promql@0.302.1-dash03","_nodeVersion":"25.6.0","_npmVersion":"11.8.0","dist":{"integrity":"sha512-MV3Fa4mWy8YJW5QBqfeR4HR6BAqb1vcDDujW3RS9SlgZYUFFc3UTcbxbgZ8hKEIj6zG7jcu3MfHBWLWTZdfWZQ==","shasum":"ed683ea1c2a6dccd6542617de9dc879828e11079","tarball":"https://registry.npmjs.org/@dash0hq/lezer-promql/-/lezer-promql-0.302.1-dash03.tgz","fileCount":5,"unpackedSize":54365,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCdvIPQUVa2YoRmdzKr3xLmHd1Z75eOFCbUgYJ79G7WQQIgNLlJfVrerdq6JeyJUr1AcF1n3Pk7x+I6J9FcMxWck44="}]},"_npmUser":{"name":"mmanciop","email":"michele.mancioppi@gmail.com"},"directories":{},"maintainers":[{"name":"bripkens","email":"bripkens@gmail.com"},{"name":"basti1302","email":"bastian.krol@web.de"},{"name":"mmanciop","email":"michele.mancioppi@gmail.com"},{"name":"thiemok","email":"krausethiemo@googlemail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/lezer-promql_0.302.1-dash03_1774862476071_0.08979189472886873"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-30T09:21:15.936Z","0.302.1-dash03":"2026-03-30T09:21:16.207Z","modified":"2026-03-30T09:21:16.479Z"},"maintainers":[{"name":"bripkens","email":"bripkens@gmail.com"},{"name":"basti1302","email":"bastian.krol@web.de"},{"name":"mmanciop","email":"michele.mancioppi@gmail.com"},{"name":"thiemok","email":"krausethiemo@googlemail.com"}],"description":"lezer-based PromQL grammar","homepage":"https://github.com/prometheus/prometheus/blob/main/web/ui/module/lezer-promql/README.md","keywords":["lezer","promql"],"repository":{"type":"git","url":"git+https://github.com/prometheus/prometheus.git"},"author":{"name":"Prometheus Authors","email":"prometheus-developers@googlegroups.com"},"bugs":{"url":"https://github.com/prometheus/prometheus/issues"},"license":"Apache-2.0","readme":"# lezer-promql\n\n## Overview\n\nThis is a PromQL grammar for the [lezer](https://lezer.codemirror.net/) parser system. It is inspired by the initial\ngrammar coming from [Prometheus](https://github.com/prometheus/prometheus/blob/main/promql/parser/generated_parser.y)\nwritten in yacc.\n\nThis library is stable but doesn't provide any guideline of how to use it as it has been integrated\ninto [codemirror-promql](https://github.com/prometheus/prometheus/blob/main/web/ui/module/codemirror-promql). If you\nwant to use this library, you perhaps want to actually use **@dash0hq/codemirror-promql** instead.\n\n**Note**: This library is a lezer-based implementation of the [authoritative, goyacc-based PromQL grammar](https://github.com/prometheus/prometheus/blob/main/promql/parser/generated_parser.y). \nAny changes to the authoritative grammar need to be reflected in this package as well.\n\n## Installation\n\nThis package is available as an npm package:\n\n```bash\nnpm install --save @prometheus-io/lezer-promql\n```\n\n**Note**: you will have to manually install the `lezer` dependencies as it is a peer dependency to this package.\n\n```bash\nnpm install --save @lezer/lr @lezer/highlight\n```\n\n## Development\n\n### Building\n\n    npm i\n    npm run build\n\n### Testing\n\n    npm run test\n\n## License\n\nThe code is licensed under an [Apache 2.0](https://github.com/prometheus/prometheus/blob/main/LICENSE) license.\n","readmeFilename":"README.md","_rev":"1-d64c6db95e8b04e08d4fd85a3edcebad"}