@fc-components/lezer-promql
TypeScript icon, indicating that this package has built-in type declarations

0.23.0 • Public • Published

lezer-promql

CircleCI NPM version

Status

This package is deprecated. It has been fully migrated to the repository prometheus/prometheus, and it is published under the npm organization @prometheus-io.

See the corresponding readme for further information.

Overview

This is a PromQL grammar for the lezer parser system. It is inspired by the initial grammar coming from Prometheus written in yacc.

This library is stable but doesn't provide any guideline of how to use it as it has been integrated into codemirror-promql. If you want to use this library, you perhaps want to actually use codemirror-promql instead.

Note: This library is following the changes of the upstream grammar (i.e. coming from Prometheus) as closed as possible

Installation

This package is available as a npm package:

npm install --save lezer-promql

Note: you will have to manually install the dependency lezer as it is a peer dependency to this package.

npm install --save lezer

Development

Building

npm i
npm run build

Testing

npm run test

License

The code is licensed under an Apache 2.0 license.

Readme

Keywords

Package Sidebar

Install

npm i @fc-components/lezer-promql

Weekly Downloads

17

Version

0.23.0

License

Apache-2.0

Unpacked Size

114 kB

Total Files

24

Last publish

Collaborators

  • gracewalk
  • star-6
  • xqing9024
  • guguji5