# broccoli-pegjs

> PEG.js filter for Broccoli

Latest version **1.0.0** (published 2017-01-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install broccoli-pegjs
pnpm add broccoli-pegjs
yarn add broccoli-pegjs
bun add broccoli-pegjs
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2017-01-25 |
| First published | 2014-09-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Gordon L. Hempton |
| Maintainers | ghempton |
| Keywords | broccoli-plugin, pegjs, javascript |

## Links

- npm: https://www.npmjs.com/package/broccoli-pegjs
- Repository: https://github.com/ghempton/broccoli-pegjs
- Homepage: https://github.com/ghempton/broccoli-pegjs#readme
- Issues: https://github.com/ghempton/broccoli-pegjs/issues
- npm.io page: https://npm.io/package/broccoli-pegjs

## Dependencies (2)

- [pegjs](https://npm.io/package/pegjs.md) ~0.8.0
- [broccoli-filter](https://npm.io/package/broccoli-filter.md) ^1.2.4

## Recent versions

- 1.0.0 (latest) — 2017-01-25
- 0.0.1 — 2014-09-17

## README

# broccoli-pegjs

A PEG.js filter for Broccoli.

## Installation

```bash
npm install --save-dev broccoli-pegjs
```

## Usage

```js
var peg = require('broccoli-pegjs');
tree = peg(tree, options);
```

## Options

### Custom Wrapper

It is possible to wrap the generated parser in any code you want:

```
tree = peg(tree, {
  wrapper: function (src, parser) {
    return 'var Parser = ' + parser + ";\nvar parse = Parser.parse, SyntaxError = Parser.SyntaxError;\nexport {SyntaxError, parse};\nexport default parse;";
  }
});
```

---
_Source: https://npm.io/package/broccoli-pegjs · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
