# gulp-snakeparser

> Gulp plugin for compiling grammers of snake-parser

Latest version **1.1.1** (published 2015-11-07) · MIT license · 0 weekly downloads

## Install

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

## 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.1.1 |
| Published | 2015-11-07 |
| First published | 2015-10-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | tanikawa04 |
| Maintainers | tanikawa |
| Keywords | gulpplugin |

## Links

- npm: https://www.npmjs.com/package/gulp-snakeparser
- Repository: https://github.com/tanikawa04/gulp-snakeparser
- Homepage: https://github.com/tanikawa04/gulp-snakeparser#readme
- Issues: https://github.com/tanikawa04/gulp-snakeparser/issues
- npm.io page: https://npm.io/package/gulp-snakeparser

## Dependencies (3)

- [through2](https://npm.io/package/through2.md) ^2.0.0
- [gulp-util](https://npm.io/package/gulp-util.md) ^3.0.7
- [snakeparser](https://npm.io/package/snakeparser.md) ^0.2.4-1

## Recent versions

- 1.1.1 (latest) — 2015-11-07
- 1.1.0 — 2015-11-07
- 1.0.0 — 2015-10-31

## README

# gulp-snakeparser

[![Build Status](https://travis-ci.org/tanikawa04/gulp-snakeparser.svg?branch=master)](https://travis-ci.org/tanikawa04/gulp-snakeparser) [![npm version](https://badge.fury.io/js/gulp-snakeparser.svg)](https://badge.fury.io/js/gulp-snakeparser)

Gulp plugin for compiling grammers of [snake-parser](https://github.com/carrotflakes/Snake-Parser).

## Installation

```bash
$ npm install --save-dev gulp-snakeparser
```

## Usage

Something like this will generate a parse function and set it to `module.exports`:

```javascript
var gulp = require('gulp');
var snakeparser = require('gulp-snakeparser');

gulp.task('snakeparser', function() {
    return gulp.src('src/*.sg')     // *.sg is a grammer file of snake-parser
        .pipe(snakeparser())
        .pipe(gulp.dest('dist'));
});
```

You can also specify a variable name for assigning the parse function, doing something like this:

```javascript
var gulp = require('gulp');
var snakeparser = require('gulp-snakeparser');

gulp.task('snakeparser', function() {
    return gulp.src('src/*.sg')
        .pipe(snakeparser({exportVariable: 'parse'}))
        .pipe(gulp.dest('dist'));
});
```

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