Strip line and/or block comments from a string. Blazing fast, and works with JavaScript, Sass, CSS, Less.js, and a number of other languages.
Stripcomments from JSON. Lets you use comments in your JSON files!
Stripcomments and string literals from JavaScript code
Stripcomments from a Pug token stream (from the lexer)
Strip or extract comments, strings or both from source code.