stringy

0.1.0 • Public • Published

Stringy.js

Stringy.js will stringify your circular JS objects without complaint. Unfortunately it currently fails if the object hierarchy exceeds 30 total items.

Usage

var b = {foo: {bar: null}}
 
b.foo.bar = b // it's circular!
 
console.log("Filtering: ", b)
console.log(stringy.stringify(b)) // works!
console.log(JSON.stringify(b)) // exception

Readme

Keywords

none

Package Sidebar

Install

npm i stringy

Weekly Downloads

21

Version

0.1.0

License

none

Last publish

Collaborators

  • ericmuyser