From b7e41b0985cc6ef900ff3b1effde3b7f6029cf50 Mon Sep 17 00:00:00 2001 From: David Majda Date: Tue, 17 Apr 2012 11:03:49 +0200 Subject: [PATCH] README.md: Various tweaks --- README.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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 `