Does anyone know of a javascript library that will take a chunk of javascript source and format it according to 开发者_开发知识库some set of rules. I can of course do it in my editor but I would like to be able to automate it as part of a build process.
Not in js, but maybe it could help:
- http://jsbeautifier.org/
(online and python version)
精彩评论