json-sane

0.2.1 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i json-sane

Weekly Downloads

0

Version

0.2.1

License

ISC

Unpacked Size

23.5 kB

Total Files

17

Last publish

Collaborators

  • rdhallman