Comment Stripper
100% CLIENT-SIDE
Finds comments with the tokenizer, so "http://x", a template containing // and a regex like /\/\// are left alone. After removal the code tokens are compared with the original, and if the input compiled, the output must too; otherwise nothing is changed and the reason is shown.
JavaScript
Without comments
More from JSFormat
JSFormat
Free, 100% client-side JavaScript beautifier built on a tokenizer, not regex.
ASI Hazard Checker (missing-semicolon traps)
Find the places where leaving out a semicolon changes what JavaScript does: a line starting with ( [ ` + -…
Guides
Developer Sponsor / Partner