{"name":"circular-json-es6","version":"2.0.2","description":"circular JSON.stringify and JSON.parse, for environments with native ES6 Map","main":"index.js","devDependencies":{"circular-json":"^0.3.0","jsan":"^3.1.2","mocha":"^2.4.5"},"scripts":{"test":"mocha","bench":"node bench.js"},"repository":{"type":"git","url":"git+https://github.com/yyx990803/circular-json-es6.git"},"author":{"name":"Evan You"},"license":"MIT","bugs":{"url":"https://github.com/yyx990803/circular-json-es6/issues"},"homepage":"https://github.com/yyx990803/circular-json-es6#readme","gitHead":"1ba1796c1c56695af85ac7abf9d5d1b7df7d2299","_id":"circular-json-es6@2.0.2","_npmVersion":"5.6.0","_nodeVersion":"8.9.1","_npmUser":{"name":"yyx990803","email":"yyx990803@gmail.com"},"dist":{"integrity":"sha512-ODYONMMNb3p658Zv+Pp+/XPa5s6q7afhz3Tzyvo+VRh9WIrJ64J76ZC4GQxnlye/NesTn09jvOiuE8+xxfpwhQ==","shasum":"e4f4a093e49fb4b6aba1157365746112a78bd344","tarball":"http://registry-npm.ywwl.com/circular-json-es6/download/circular-json-es6-2.0.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCBLUhU51tdCjm/izU1zYxHRblJRK0qBJrrJfvoz9mIzwIgYWFHGuJsZS0bG6rMR2UUDNrYHAsA+yeC/+ACEsrW42I="}],"size":3724,"noattachment":false,"key":"/circular-json-es6/-/circular-json-es6-2.0.2.tgz"},"maintainers":[{"name":"yyx990803","email":"yyx990803@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/circular-json-es6-2.0.2.tgz_1516722601206_0.300492835463956"},"directories":{},"readme":"# circular-json-es6\n\nA replacement for `JSON.stringify` and `JSON.parse` that can handle circular references (persists reference structure).\n\n**This implementation requires environments with native ES6 Map support,** but is decently faster than [circular-json](https://github.com/WebReflection/circular-json) (see benchmark with `npm run bench`).\n\n``` js\nvar CircularJSON = require('circular-json-es6')\n\nvar obj = {}\nobj.a = obj\n\nvar clone = CircularJSON.parse(CircularJSON.stringify(obj))\n\nclone.a === clone // -> true\n```\n\n### NOTE\n\nThe default `stringify` method optimizes for cases where no circular reference is present by trying a plain `JSON.stringify` first. This means if no circular references are found in the data then it will not persist multiple (but non-circular) references to the same object.\n\nIf you want to enforce reference persistence, use `CircularJSON.stringifyStrict` instead.\n","publish_time":1516722601300,"_cnpm_publish_time":1516722601300,"dist-tags":{"latest":"2.0.2"}}