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.
displace-comments
Replace the comment with an equal amount of space from the code string
als-remove-js-comments
A utility for removing JavaScript comments, supporting both single-line and multi-line comments with proper handling of string literals.