Install npm install -g prettyJson --registry http://npm.lanhao.name Usage echo '{"a":"123","b":321,"c":{"d":["e","f"]}}'|prettyJson 输出结果