stripcomments
stripcomments copied to clipboard
made some minor improvements:
- make it usable outside of a browser (e.g. Node.js)
- strict mode
- add the opportunity to preserve newlines (optional)
If you don't mind I would also like to wrap a module.exports around it (thus we could easily make an npm compatible package of it).