pegjs/docs/guides/installation.md
Futago-za Ryuu 2ac387e1c9 Move documentation
The README.md file in the root of the repository had become too large, and as a result the file became hard to maintain.

This commit extracts all the documentation and moves it to separate but managable files within the docs directory, a new folder also located in the root of the repository.
2018-02-16 02:39:13 +00:00

961 B

Installation

Node.js

To use the pegjs command, install PEG.js globally:

$ npm install -g pegjs

To use the JavaScript API, install PEG.js locally:

$ npm install pegjs

If you need both the pegjs command and the JavaScript API, install PEG.js both ways.

If you plan to use the pegjs command only in your package.json, it is suggested you install it locally only, as all locally installed packages that contain command line tools are available to it.

Browser

Download the PEG.js library (regular or minified version) or install it using Bower:

$ bower install pegjs

Latest

To use the latest features, fixes and changes of PEG.js, install the packaged dev release:

$ npm install pegjs@dev

Alternatively, you can directly install from the repository (larger then the packaged dev release):

$ npm install pegjs/pegjs#master