From b9b419c55c91eacffdec8028a9186b7f3506b7ae Mon Sep 17 00:00:00 2001 From: Pavol Bielik Date: Mon, 26 Jan 2015 20:06:52 +0100 Subject: [PATCH] Update README.md --- README.md | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1dc1682c..ac1e9aac 100644 --- a/README.md +++ b/README.md @@ -11,9 +11,31 @@ This page documents how to use the UnuglifyJS as a client of the [Nice 2 Predict NPM Module ------- -comming soon. +The npm module is available at https://www.npmjs.com/package/unuglify-js. To install run: -Install +> sudo npm install unuglify-js --global + +To use the UnuglifyJS simply supply the JavaScript file to be analyzed. For example: + +```JavaScript +//demo.js - minified file +function f(a,b,c) { + b.open('GET', a, false); + b.send(c); +} +``` + +> unuglifyjs demo.js > demo_renamed.js + +```JavaScript +//demo_renamed.js +function f(fileUrl, req, message) { + req.open('GET', fileUrl, false); + req.send(message); +} +``` + +Install from Source ------- #### UnuglifyJS