
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
uncomment-it
Advanced tools
Uncomment html, js or css
NOTE: This is using regex and therefore is pretty fragile. Created for simplicity and perf reasons. Read more at https://github.com/sindresorhus/comment-regex/issues/1.
HINT: In order to make it work properly adjust some space around the comments might help.
$ npm install --save uncomment-it
var uncommentIt = require('uncomment-it');
uncommentIt('<!--<div>a div</div>-->', 'html');
//=> <div>a div</div>
uncommentIt('// var test = \'test\'', 'js');
//=> var test = 'test'
uncommentIt('/*body {background: blue}*/', 'css');
//=> body {background: blue}
$ npm install --global uncomment-it
$ uncomment-it --help
Usage
uncomment-it <input-path> <type>
uncomment-it <input-path> <type> <output-path>
cat <input-path> | uncomment-it <type>
Example
uncomment-it index.html html
uncomment-it index.js js uncommented.html
cat index.css | uncomment-its css
cat index.html | uncomment-it html > uncommented.html
Options
-v, --verbose Verbose output
MIT © Steve Mao
FAQs
Uncomment html, js or css
The npm package uncomment-it receives a total of 5 weekly downloads. As such, uncomment-it popularity was classified as not popular.
We found that uncomment-it demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.