I've a complex curl command that I want to analyze but it's all minified into one line.
Is there a formatter that would beautify it?
shell-format can format bash files. Assuming you put that curl command to be part of a bash script, it should work.
curl http://example.com/api/getPosts | node <<< "var o = $(cat); console.log(JSON.stringify(o, null, 4));" Got it from here: https://stackoverflow.com/a/27238477/2159159