rollup-plugin-pegjs

2.1.3 • Public • Published

rollup-plugin-pegjs

Build Status NPM Version License

A rollup plugin allowing you to import PEG.js grammars as parsers directly in your code.

import { parse } from "grammar.pegjs";
console.log(parse("language to parse"));

Install

npm install --save-dev rollup-plugin-pegjs

Usage

import { rollup } from "rollup";
import pegjs from "rollup-plugin-pegjs";
 
rollup({
  entry: "main.js",
  plugins: [
    pegjs()
  ]
});

Readme

Keywords

Package Sidebar

Install

npm i rollup-plugin-pegjs

Weekly Downloads

48

Version

2.1.3

License

MIT

Last publish

Collaborators

  • cameronhunter