Javascript, any clean up tools written in javascript itself?
I'm basically looking for a javascript library that accepts an arbitrary string which may be valid javascript and returns a "cleaned up" version based on javascript indention 开发者_开发知识库rules. It would be nice if the library also did css and html.
Barring that, if someone has an interesting idea for doing it from javascript I'd love to hear it.
you can use https://beautifier.io/ .
But you can also use node-beautifier in node js :P
精彩评论