rickeyski / node-beautifier

A nodejs-cli for einars {js,css,html}-beautifier
MIT License
29 stars 10 forks source link

JSON support #9

Open iki opened 11 years ago

iki commented 11 years ago

would be helpful.

Thanks for this tool anyway.

iki commented 11 years ago

Maybe upgrading to the latest js-beautify would solve that. See also https://github.com/einars/js-beautify/issues/181

Leftium commented 11 years ago

Actually, node-beautifier does support JSON files; it just doesn't recognize them (as JavaScript files) due to the file extension.

workaround: change the extension of your JSON file to .js