# broccoli-pegjs-import

> PEG.js filter for Broccoli

Latest version **0.0.2** (published 2015-02-27) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2015-02-27 |
| First published | 2015-02-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Matthew Beale |
| Maintainers | mixonic |
| Keywords | broccoli-plugin, pegjs, pegjs-import, javascript |

## Links

- npm: https://www.npmjs.com/package/broccoli-pegjs-import
- Repository: https://github.com/201-created/broccoli-pegjs-import
- Issues: https://github.com/201-created/broccoli-pegjs-import/issues
- npm.io page: https://npm.io/package/broccoli-pegjs-import

## Dependencies (2)

- [rsvp](https://npm.io/package/rsvp.md) ^3.0.16
- [broccoli-filter](https://npm.io/package/broccoli-filter.md) ^0.1.6

## Recent versions

- 0.0.2 (latest) — 2015-02-27
- 0.0.1 — 2015-02-27

## README

# broccoli-pegjs

Forked from [broccoli-pegjs](https://github.com/ghempton/broccoli-pegjs).

A [PEG.js](http://pegjs.org/) filter for [Broccoli](http://broccolijs.com/) that
uses [pegjs-import](https://github.com/casetext/pegjs-import).

## Installation

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

## Usage

```js
var peg = require('pegjs-import');
var pegBuilder = require('broccoli-pegjs-import');
tree = pegBuilder(tree, {
  peg: peg
});
```

## Options

* `wrapper` - Wrap the generated parser in any code you want:

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

* `peg` - Provide an alternative peg instance.

```
tree = pegBuilder(tree, {
  peg: require('pegjs-import')
});
```

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