{"_id":"@clavinjune/lezer-metricsql","_rev":"5-b14cc3f5fba7574943b282630b1831fc","name":"@clavinjune/lezer-metricsql","dist-tags":{"latest":"0.0.1-dev.1911250001"},"versions":{"0.0.1-dev.2909230003":{"name":"@clavinjune/lezer-metricsql","version":"0.0.1-dev.2909230003","keywords":["lezer","promql","metricsql"],"author":{"name":"Clavin June","email":"juneardoc@gmail.com"},"license":"Apache-2.0","_id":"@clavinjune/lezer-metricsql@0.0.1-dev.2909230003","maintainers":[{"name":"clavinjune","email":"juneardoc+npm-bcca0@gmail.com"}],"homepage":"https://github.com/clavinjune/prometheus-codemirror-metricsql/blob/main/web/ui/module/lezer-metricsql/README.md","bugs":{"url":"https://github.com/clavinjune/prometheus-codemirror-metricsql/issues"},"dist":{"shasum":"976f92e04f2f7a13da03e458a5ce9b85de5d0241","tarball":"https://registry.npmjs.org/@clavinjune/lezer-metricsql/-/lezer-metricsql-0.0.1-dev.2909230003.tgz","fileCount":5,"integrity":"sha512-QZJVdLsOisgLOhFpn8Wu3NJyS/d1TCxtRErYFhnaw4kxHZ6RYge7IKPaoasdopkq5WhoFzKNtlcF2ZS6A6Snhw==","signatures":[{"sig":"MEQCIDjw7eI0ogdzovAgqq0dBHNHIqcautOsrqquMIICkGL0AiAS1gqA6wwXr/p6+OAtmbmLnb2ug7aK8lcOqcvbKJHXIA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":85719},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.es.js","exports":{"import":"./dist/index.es.js","require":"./dist/index.cjs"},"gitHead":"8f46e90f5df5f2ffd6658f1090212b4d37b6dc63","scripts":{"lint":"echo 'nothing to do'","test":"NODE_OPTIONS=--experimental-vm-modules jest","build":"bash ./build.sh"},"_npmUser":{"name":"clavinjune","email":"juneardoc+npm-bcca0@gmail.com"},"repository":{"url":"git+https://github.com/clavinjune/prometheus-codemirror-metricsql.git","type":"git"},"_npmVersion":"9.6.7","description":"lezer-based MetricsQL grammar","directories":{},"_nodeVersion":"18.17.0","_hasShrinkwrap":false,"devDependencies":{"@lezer/lr":"^1.3.6","@lezer/generator":"^1.2.3","@lezer/highlight":"^1.1.6"},"peerDependencies":{"@lezer/lr":"^1.3.6","@lezer/highlight":"^1.1.6"},"_npmOperationalInternal":{"tmp":"tmp/lezer-metricsql_0.0.1-dev.2909230003_1696236047332_0.7046146764501213","host":"s3://npm-registry-packages"}},"0.0.1-dev.1010230001":{"name":"@clavinjune/lezer-metricsql","version":"0.0.1-dev.1010230001","keywords":["lezer","promql","metricsql"],"author":{"name":"Clavin June","email":"juneardoc@gmail.com"},"license":"Apache-2.0","_id":"@clavinjune/lezer-metricsql@0.0.1-dev.1010230001","maintainers":[{"name":"clavinjune","email":"juneardoc+npm-bcca0@gmail.com"}],"homepage":"https://github.com/clavinjune/prometheus-codemirror-metricsql/blob/main/web/ui/module/lezer-metricsql/README.md","bugs":{"url":"https://github.com/clavinjune/prometheus-codemirror-metricsql/issues"},"dist":{"shasum":"2c1f98cfef4d5cddb774d873f69132396e5db150","tarball":"https://registry.npmjs.org/@clavinjune/lezer-metricsql/-/lezer-metricsql-0.0.1-dev.1010230001.tgz","fileCount":5,"integrity":"sha512-AKjoo13dGao0gV/gBWiubICWHkT0JuRsFOcmkEdtK8IjaIICzOK50FOyQY2cmDPSa7WWhwUEKMErA+gNljL6qw==","signatures":[{"sig":"MEUCIQDxil6UiwNzU7om+4flY+n3SWL93uaf3eFcddX9IypSJwIgJuvgJDkz+L9dXjC4sbLQIu3ADkWpftFvhmKocUQaUMU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":87232},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.es.js","exports":{"import":"./dist/index.es.js","require":"./dist/index.cjs"},"gitHead":"f88bdacf1949af5c97637e4705e103ee421bdb3e","scripts":{"lint":"echo 'nothing to do'","test":"NODE_OPTIONS=--experimental-vm-modules jest","build":"bash ./build.sh"},"_npmUser":{"name":"clavinjune","email":"juneardoc+npm-bcca0@gmail.com"},"repository":{"url":"git+https://github.com/clavinjune/prometheus-codemirror-metricsql.git","type":"git"},"_npmVersion":"9.6.7","description":"lezer-based MetricsQL grammar","directories":{},"_nodeVersion":"18.17.0","_hasShrinkwrap":false,"devDependencies":{"@lezer/lr":"^1.3.6","@lezer/generator":"^1.2.3","@lezer/highlight":"^1.1.6"},"peerDependencies":{"@lezer/lr":"^1.3.6","@lezer/highlight":"^1.1.6"},"_npmOperationalInternal":{"tmp":"tmp/lezer-metricsql_0.0.1-dev.1010230001_1696912168355_0.8799987160321336","host":"s3://npm-registry-packages"}},"0.0.1-dev.3007240001":{"name":"@clavinjune/lezer-metricsql","version":"0.0.1-dev.3007240001","keywords":["lezer","promql","metricsql"],"author":{"name":"Clavin June","email":"juneardoc@gmail.com"},"license":"Apache-2.0","_id":"@clavinjune/lezer-metricsql@0.0.1-dev.3007240001","maintainers":[{"name":"clavinjune","email":"juneardoc+npm-bcca0@gmail.com"}],"homepage":"https://github.com/clavinjune/prometheus-codemirror-metricsql/blob/main/web/ui/module/lezer-metricsql/README.md","bugs":{"url":"https://github.com/clavinjune/prometheus-codemirror-metricsql/issues"},"dist":{"shasum":"1f847a36cbc5ab8b6c05ed329767e5f56a3ff1ac","tarball":"https://registry.npmjs.org/@clavinjune/lezer-metricsql/-/lezer-metricsql-0.0.1-dev.3007240001.tgz","fileCount":5,"integrity":"sha512-RJBBzlKPVGnaewBApP4PTQ9EQoB6xFUF+WcUl4M55ZBKG8T08MlsKUK1zT7RUsD/ogsFXvDXMNx3LYb/PHFVeA==","signatures":[{"sig":"MEUCIFOkFqyLbTbtI4psIVp5QQFDX9L7MOA27egDwsEILv+aAiEAhKpga82bwr++3dBQT11tCixxJf8y04nQpAeg9AKtNzI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":87443},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.es.js","exports":{"import":"./dist/index.es.js","require":"./dist/index.cjs"},"gitHead":"fe682e471fe9fb7befba18ac6e82419c9d4438b1","scripts":{"lint":"echo 'nothing to do'","test":"NODE_OPTIONS=--experimental-vm-modules jest","build":"bash ./build.sh"},"_npmUser":{"name":"clavinjune","email":"juneardoc+npm-bcca0@gmail.com"},"repository":{"url":"git+https://github.com/clavinjune/prometheus-codemirror-metricsql.git","type":"git"},"_npmVersion":"10.5.0","description":"lezer-based MetricsQL grammar","directories":{},"_nodeVersion":"20.12.0","_hasShrinkwrap":false,"devDependencies":{"@lezer/lr":"^1.3.6","@lezer/generator":"^1.2.3","@lezer/highlight":"^1.1.6"},"peerDependencies":{"@lezer/lr":"^1.3.6","@lezer/highlight":"^1.1.6"},"_npmOperationalInternal":{"tmp":"tmp/lezer-metricsql_0.0.1-dev.3007240001_1722313174466_0.650798153737328","host":"s3://npm-registry-packages"}},"0.0.1-dev.108240001":{"name":"@clavinjune/lezer-metricsql","version":"0.0.1-dev.108240001","keywords":["lezer","promql","metricsql"],"author":{"name":"Clavin June","email":"juneardoc@gmail.com"},"license":"Apache-2.0","_id":"@clavinjune/lezer-metricsql@0.0.1-dev.108240001","maintainers":[{"name":"clavinjune","email":"juneardoc+npm-bcca0@gmail.com"}],"homepage":"https://github.com/clavinjune/prometheus-codemirror-metricsql/blob/main/web/ui/module/lezer-metricsql/README.md","bugs":{"url":"https://github.com/clavinjune/prometheus-codemirror-metricsql/issues"},"dist":{"shasum":"53138ed53252b9cc4c1832b5200e2001cd632838","tarball":"https://registry.npmjs.org/@clavinjune/lezer-metricsql/-/lezer-metricsql-0.0.1-dev.108240001.tgz","fileCount":5,"integrity":"sha512-+ArerwfCzUxhyJOKxxzWpSmr0WkydbyW2jdIWOK8fGHI3W4tfuBiJt4eXrQzrmitZwTxHad2Z+fust0XPtws4Q==","signatures":[{"sig":"MEUCIQDVIv6np8DTfOLAfKzNgMHKhBr7Jwu/bGLM5dMkmMn1/wIgJKMzaQQE/yyqM59FwRj+YwqcwMetwana2B5WsMYJVTE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":87443},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.es.js","exports":{"import":"./dist/index.es.js","require":"./dist/index.cjs"},"gitHead":"9457b685685b6ee5e0d0db5496cf449b9fc4f35b","scripts":{"lint":"echo 'nothing to do'","test":"NODE_OPTIONS=--experimental-vm-modules jest","build":"bash ./build.sh"},"_npmUser":{"name":"clavinjune","email":"juneardoc+npm-bcca0@gmail.com"},"repository":{"url":"git+https://github.com/clavinjune/prometheus-codemirror-metricsql.git","type":"git"},"_npmVersion":"10.5.0","description":"lezer-based MetricsQL grammar","directories":{},"_nodeVersion":"20.12.0","_hasShrinkwrap":false,"devDependencies":{"@lezer/lr":"^1.3.6","@lezer/generator":"^1.2.3","@lezer/highlight":"^1.1.6"},"peerDependencies":{"@lezer/lr":"^1.3.6","@lezer/highlight":"^1.1.6"},"_npmOperationalInternal":{"tmp":"tmp/lezer-metricsql_0.0.1-dev.108240001_1722497091221_0.277436809248518","host":"s3://npm-registry-packages"}},"0.0.1-dev.1911250001":{"name":"@clavinjune/lezer-metricsql","version":"0.0.1-dev.1911250001","description":"lezer-based MetricsQL grammar","main":"dist/index.cjs","type":"module","exports":{"import":"./dist/index.es.js","require":"./dist/index.cjs"},"module":"dist/index.es.js","types":"dist/index.d.ts","author":{"name":"clavin june","email":"juneardoc@gmail.com"},"license":"Apache-2.0","repository":{"type":"git","url":"git+https://github.com/clavinjune/prometheus-codemirror-metricsql.git"},"keywords":["lezer","promql","metricsql"],"bugs":{"url":"https://github.com/clavinjune/prometheus-codemirror-metricsql/issues"},"homepage":"https://github.com/clavinjune/prometheus-codemirror-metricsql/blob/main/web/ui/module/lezer-metricsql/README.md","scripts":{"build":"bash ./build.sh","lint":"echo 'nothing to do'","test":"NODE_OPTIONS=--experimental-vm-modules jest"},"devDependencies":{"@lezer/generator":"^1.2.3","@lezer/highlight":"^1.2.3","@lezer/lr":"^1.4.3","@rollup/plugin-node-resolve":"^16.0.3"},"peerDependencies":{"@lezer/highlight":"^1.1.6","@lezer/lr":"^1.3.6"},"_id":"@clavinjune/lezer-metricsql@0.0.1-dev.1911250001","gitHead":"9457b685685b6ee5e0d0db5496cf449b9fc4f35b","_nodeVersion":"23.3.0","_npmVersion":"10.9.0","dist":{"integrity":"sha512-QeFarha4M93gKwATweZXUoq3S3A60jpNS3WNtY/u8tAU5gEIahiuYYqJe/vl/LNyP6NVHd4/BnhIuYeTqlPnoQ==","shasum":"408017d31657bea9248b41885649d667a6fe119d","tarball":"https://registry.npmjs.org/@clavinjune/lezer-metricsql/-/lezer-metricsql-0.0.1-dev.1911250001.tgz","fileCount":5,"unpackedSize":89633,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIEb9atPo6REXB9Qt/4ebsKq92inHzJytwBMMW+JlZ6lqAiA9uPPlSVa5BEHrmxTg9iDI/jWElH9mHwY4xk2xVmbFkw=="}]},"_npmUser":{"name":"clavinjune","email":"juneardoc+npm-bcca0@gmail.com"},"directories":{},"maintainers":[{"name":"clavinjune","email":"juneardoc+npm-bcca0@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/lezer-metricsql_0.0.1-dev.1911250001_1763523155180_0.8424496296951081"},"_hasShrinkwrap":false}},"time":{"created":"2023-10-02T08:40:47.264Z","modified":"2025-11-19T03:32:35.983Z","0.0.1-dev.2909230003":"2023-10-02T08:40:47.531Z","0.0.1-dev.1010230001":"2023-10-10T04:29:28.565Z","0.0.1-dev.3007240001":"2024-07-30T04:19:34.644Z","0.0.1-dev.108240001":"2024-08-01T07:24:51.453Z","0.0.1-dev.1911250001":"2025-11-19T03:32:35.381Z"},"bugs":{"url":"https://github.com/clavinjune/prometheus-codemirror-metricsql/issues"},"author":{"name":"clavin june","email":"juneardoc@gmail.com"},"license":"Apache-2.0","homepage":"https://github.com/clavinjune/prometheus-codemirror-metricsql/blob/main/web/ui/module/lezer-metricsql/README.md","keywords":["lezer","promql","metricsql"],"repository":{"type":"git","url":"git+https://github.com/clavinjune/prometheus-codemirror-metricsql.git"},"description":"lezer-based MetricsQL grammar","maintainers":[{"name":"clavinjune","email":"juneardoc+npm-bcca0@gmail.com"}],"readme":"# lezer-metricsql\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-metricsql](https://github.com/clavinjune/prometheus-codemirror-metricsql/blob/main/web/ui/module/codemirror-metricsql). If you\nwant to use this library, you perhaps want to actually use **@clavinjune/codemirror-metricsql** 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 @clavinjune/lezer-metricsql\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/clavinjune/prometheus-codemirror-metricsql/blob/main/LICENSE) license.\n","readmeFilename":"README.md"}