blat

JSON.stringify

blat

JSON.stringify

var blat = require('blat')
blat({foo: 'bar'})
// => '{\n  "foo": "bar"\n}'

Yes, I hate the JSON.stringify api this much.

api

blat(Object) => String

Serializes and pretty-prints a JavaScript object to a string

console.logs a blat()d view of the object and returns the original object.

$ npm install blat

From package root:

$ npm install
$ npm test

MIT. (c) 2013 jden jason@denizac.org. See LICENSE.md