How to use prettyjson.render:
GitHub: einarwh/oredev-2022
341 342 343 344 345 346 347 348 349 350
} else { console.log('No such action: ' + actionName); console.log('Available actions [' + acts.length + ']:'); for (var i = 0, len = acts.length; i < len; i++) { console.log(" " + i + " : " + prettyjson.render(acts[i].name)); } } } };