npm install js-beautify
js-beautify -r foo.js
Or Download code from Beautifier for javascript http://jsbeautifier.org/
js-beautify/python/js-beautify -r ~/workspace/webSocket/server/wsserver.js
-r, –replace Write output in-place, replacing input
Reference:
0 意見:
張貼留言