pretty-js
Version:
Beautify / pretty print JavaScript and JSON
8 lines (7 loc) • 338 B
JSON
{
"input": "x[2];x[2](true);x[1][2][3];function y(){return ['literal'];}y.zzz=function (){return this['a b'];}",
"options": {
"convertStrings": false
},
"output": "x[2];\nx[2](true);\nx[1][2][3];\n\nfunction y() {\n return [\n 'literal'\n ];\n}\n\ny.zzz = function () {\n return this['a b'];\n}"
}