strip-comments
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.
rehype-ignore
Ignore content display via HTML comments, Shown in GitHub readme, excluded in HTML.
cmtu
A Node.js utility library for easily removing, extracting, and manipulating comments in code strings with support for popular programming languages such as JavaScript, Python, and etc.