strip-comments : Strip comments from code. Removes line comments, block comments, the first comment only, or all comments. Optionally leave protected comments unharmed.. You can installing strip-comments 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 strip-comments $ sudo npm install -g strip-comments
If want to update the strip-comments package execute the command as below,
$ sudo npm update strip-comments
Update package globally,
$ npm install -g strip-comments
$ sudo git clone https://github.com/rektide/strip-comments.git
$ sudo npm install -g ./strip-comments
strip-comments@0.4.4 /usr/lib/node_modules/strip-comments
You can uninstall or remove this package from your node_modules run the command as below,
$ sudo npm uninstall strip-comments
| Package Name | strip-comments |
| Version | 0.4.4 |
| Description | Strip comments from code. Removes line comments, block comments, the first comment only, or all comments. Optionally leave protected comments unharmed. |
| Released Date | 2016-02-14T23:12:59.259Z |
| Published by | jonschlinkert |
| How to Learn | https://www.npmjs.com/package/strip-comments/tutorial |