uglify-js2 : JavaScript parser, mangler/compressor and beautifier toolkit. You can installing uglify-js2 npm packages, there are two ways to install this module locally and globaly. -g option is specified to global. Execute the below command.
$ sudo npm install uglify-js2 $ sudo npm install -g uglify-js2
If want to update the uglify-js2 package execute the command as below,
$ sudo npm update uglify-js2
Update package globally,
$ npm install -g uglify-js2
$ sudo git clone https://github.com/rektide/uglify-js2.git
$ sudo npm install -g ./uglify-js2
uglify-js2@2.1.11 /usr/lib/node_modules/uglify-js2
You can uninstall or remove this package from your node_modules run the command as below,
$ sudo npm uninstall uglify-js2
| Package Name | uglify-js2 |
| Version | 2.1.11 |
| Description | JavaScript parser, mangler/compressor and beautifier toolkit |
| Released Date | 2012-11-12T11:25:29.161Z |
| Published by | mishoo |
| How to Learn | https://www.npmjs.com/package/uglify-js2/tutorial |