{"name":"circular-json-es6","version":"1.1.0","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":"3522a25b768e3a95cd1bc8b2a72ec5a98b435b47","_id":"circular-json-es6@1.1.0","_shasum":"1e37af085c9c25dfe2fd6c83bb13b237cf8a9429","_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":"1e37af085c9c25dfe2fd6c83bb13b237cf8a9429","tarball":"http://registry-npm.ywwl.com/circular-json-es6/download/circular-json-es6-1.1.0.tgz","integrity":"sha512-yfBTECBhEdZtt2gPRDlfquxwAjr5zCA5drbaj/khhcTVx1FdQrYU63WhBM2vnqiFCZ46K/RBobAkpym3qYMr9w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB5fTn8W13tpmF9w9n+p+Y7nm7nw/HIjJbV4V52DonmIAiEAiGgKfSPeS35svvEf6Rfw0ECsxMtyIpviq3vEIS379xk="}],"size":3515,"noattachment":false,"key":"/circular-json-es6/-/circular-json-es6-1.1.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/circular-json-es6-1.1.0.tgz_1457473663812_0.3521697123069316"},"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":1457473667821,"_cnpm_publish_time":1457473667821,"dist-tags":{"latest":"2.0.2"}}