{"name":"circular-json-es6","version":"1.0.0","description":"circular JSON.stringify and JSON.parse, for environments with native ES6 Map","main":"index.js","devDependencies":{"mocha":"^2.4.5","circular-json":"^0.3.0"},"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":"017a0ddfa7eedefd5102a5edf70e509b7a5e094f","_id":"circular-json-es6@1.0.0","_shasum":"48798699057f319c307ea56a9e59b8cd7ca37efe","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.5.0","_npmUser":{"name":"yyx990803","email":"yyx990803@gmail.com"},"maintainers":[{"name":"yyx990803","email":"yyx990803@gmail.com"}],"dist":{"shasum":"48798699057f319c307ea56a9e59b8cd7ca37efe","tarball":"http://registry-npm.ywwl.com/circular-json-es6/download/circular-json-es6-1.0.0.tgz","integrity":"sha512-9QfD7kO/ZSzeUFdN6WEmXiPz7wdjDg5IsYgbZimUjIcJtkU/w+AGZG7EXul0QtFHgB6pUqOnoT2HXfPNSEJI6w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDy3ihQAIRts3rneFD9/IKJfvgmTXUB+8p0xjqZABxZSwIhAPNi+tC6W0FU609ogBcH1cuaaPRQif4MCQDo0olyqMYo"}],"size":3414,"noattachment":false,"key":"/circular-json-es6/-/circular-json-es6-1.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/circular-json-es6-1.0.0.tgz_1457124240611_0.5607838423456997"},"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":1457124243935,"_cnpm_publish_time":1457124243935,"dist-tags":{"latest":"2.0.2"}}