# gulp-peg

> Gulp plugin for compiling PEG grammars

Latest version **0.2.0** (published 2015-11-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install gulp-peg
pnpm add gulp-peg
yarn add gulp-peg
bun add gulp-peg
```

## 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.2.0 |
| Published | 2015-11-17 |
| First published | 2014-05-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Dmitry Lazutkin |
| Maintainers | lazutkin |
| Keywords | gulpplugin, gulp |

## Links

- npm: https://www.npmjs.com/package/gulp-peg
- Repository: https://github.com/lazutkin/gulp-peg
- Issues: https://github.com/lazutkin/gulp-peg/issues
- npm.io page: https://npm.io/package/gulp-peg

## Dependencies (3)

- [pegjs](https://npm.io/package/pegjs.md) ^0.9.0
- [through2](https://npm.io/package/through2.md) ^0.4.1
- [gulp-util](https://npm.io/package/gulp-util.md) ^2.2.14

## Recent versions

- 0.2.0 (latest) — 2015-11-17
- 0.1.2 — 2014-06-20
- 0.1.1 — 2014-05-05
- 0.1.0 — 2014-05-05

## README

gulp-peg
========

[![Build Status](https://travis-ci.org/lazutkin/gulp-peg.svg?branch=develop)](https://travis-ci.org/lazutkin/gulp-peg)

Gulp plugin for [PEG](http://pegjs.majda.cz/) parsers compilation.

# Detailed documentation will be writen soon...

# Installation

Install plugin

```
npm install gulp-peg --save-dev
```

Add peg-compilation task into your gulp-file:

```coffeescript
paths =
  build: "build"
  scripts: peg: "src/**/*.peg"

gulp.task "peg:compile", ->
  gulp
    .src( paths.scripts.peg )
    .pipe( peg( ).on( "error", gutil.log ) )
    .pipe( gulp.dest( paths.build ) )
```

Finish

## Options

Plugin redirects passed options directly to PEG, so read [its documentation](http://pegjs.majda.cz/documentation) for details.

#### exportVar option

This option is inspired by [grunt-peg](https://github.com/dvberkel/grunt-peg) plugin, and defines variable to which the generated parser will be assigned in the output file. Default value is `module.exports`.

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