Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@peeriq/broccoli-pegjs

Package Overview
Dependencies
Maintainers
3
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@peeriq/broccoli-pegjs

PEG.js filter for Broccoli

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
3
Created
Source

broccoli-pegjs

A PEG.js filter for Broccoli.

Installation

npm install --save-dev broccoli-pegjs

Usage

var peg = require('@peeriq/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;";
  }
});

Keywords

broccoli-plugin

FAQs

Package last updated on 12 Sep 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts