fly-peg

PEG.js plugin for Fly.

Usage no npm install needed!

<script type="module">
  import flyPeg from 'https://cdn.skypack.dev/fly-peg';
</script>

README

fly-peg

fly badge npm badge download badge travisbadge license badge

PEG.js plugin for Fly .

Install

This plugin requires Fly .

npm i -D fly-peg

Usage

Async/Await flavored:

export async function pasa () {
  await this
    .source('src/myParser.pegjs')
    .peg({ // PEG.js options
        optimize: 'speed'
      })
    .target('dist')
}

Generator function flavored:

exports.pasa = function* () {
  yield this
    .source('src/myParser.pegjs')
    .peg({ // PEG.js options
        optimize: 'speed'
      })
    .target('dist')
}

See PEG.js JavaScript API for PEG.js options .

License

Do What The F*ck You Want To Public License