{"name":"circular-json-es6","version":"2.0.1","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":"d0afda652aa08c718154af385260c12de9b17406","_id":"circular-json-es6@2.0.1","_shasum":"c9f4e37df74a655ced7245d31020bf5b5cd34ef6","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.8.0","_npmUser":{"name":"yyx990803","email":"yyx990803@gmail.com"},"dist":{"shasum":"c9f4e37df74a655ced7245d31020bf5b5cd34ef6","tarball":"http://registry-npm.ywwl.com/circular-json-es6/download/circular-json-es6-2.0.1.tgz","integrity":"sha512-lQtnM8QYe9xwc2BDqOmR1qTZhktY6xFxSg8AJYhIuJAIk3xqKnbaI0aUIw4C+iHQudWWo2i+HjEyeH2iaAL+aw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDRZ/qqwYswbVFlgobBYGe3ERtnHZT61LNZ5x/yg2LyfwIgdi8reQ25ihI8+Gq9puCO05MHA2fd+YIyxlk90DMrpQk="}],"size":3806,"noattachment":false,"key":"/circular-json-es6/-/circular-json-es6-2.0.1.tgz"},"maintainers":[{"name":"yyx990803","email":"yyx990803@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/circular-json-es6-2.0.1.tgz_1492593176412_0.2013871120288968"},"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":1492593176636,"_cnpm_publish_time":1492593176636,"dist-tags":{"latest":"2.0.2"}}