JSON Formatter
Usage
$ npm install json-nice
var format = require('json-nice');
console.log(format(obj));
Options
Rendering can be customized by adding options:var options = {
indent: '\t' // indent using tab
};
format(obj, options);
$ npm install json-nice
var format = require('json-nice');
console.log(format(obj));
var options = {
indent: '\t' // indent using tab
};
format(obj, options);
Bytes is a JavaScript newsletter you'll actually enjoy reading.
Delivered every Monday, for free.