0.2.1 • Published 5 years ago

json-sane v0.2.1

Weekly downloads
1
License
ISC
Repository
-
Last release
5 years ago

json-sane

Sane JSON library that prints a more sane size JSON output elided if necessary, especially where arrays are concerned. And also handles circular JSON properly.

Usage

const replacer = require('json-sane');
console.log(JSON.stringify(obj, replacer(), 2));

Note the replacer is a function that returns a function, so you must include the () where the replacer is used.