diff --git a/README.md b/README.md index 40987d1..c693e9c 100644 --- a/README.md +++ b/README.md @@ -22,15 +22,19 @@ Installation ### Node.js -To use the command-line version, install [Node.js](http://nodejs.org/) and [npm](http://npmjs.org/) first. You can then install PEG.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 -Once installed, you can use the `pegjs` command to generate your parser from a grammar and use the JavaScript API from Node.js. +If you need both the `pegjs` command and the JavaScript API, install PEG.js both ways. ### Browser -[Download](http://pegjs.majda.cz/#download) the PEG.js library (regular or minified version) and include it in your web page or application using the `