{"_id":"destroy-circular","_rev":"922899","name":"destroy-circular","description":"Replace circular references in an object with a string","dist-tags":{"latest":"1.1.0"},"maintainers":[{"name":"jonpacker","email":"contact@jonpacker.com"}],"time":{"modified":"2024-07-28T03:25:24.000Z","created":"2014-08-05T11:54:13.361Z","1.1.0":"2014-08-05T13:14:58.786Z","1.0.1":"2014-08-05T12:00:04.697Z","1.0.0":"2014-08-05T11:54:13.361Z"},"users":{},"author":{"name":"Jon Packer","email":"contact@jonpacker.com"},"repository":{"type":"git","url":"https://github.com/jonpacker/destroy-circular"},"versions":{"1.1.0":{"name":"destroy-circular","version":"1.1.0","description":"Replace circular references in an object with a string","main":"dc.js","scripts":{"test":"mocha -R spec"},"repository":{"type":"git","url":"https://github.com/jonpacker/destroy-circular"},"keywords":["destroy","circular","references","replace","string"],"author":{"name":"Jon Packer","email":"contact@jonpacker.com"},"license":"MIT","bugs":{"url":"https://github.com/jonpacker/destroy-circular/issues"},"homepage":"https://github.com/jonpacker/destroy-circular","devDependencies":{"mocha":"^1.21.3"},"_id":"destroy-circular@1.1.0","dist":{"shasum":"f76624b76f999f1ac18b0ab444495118293a3ce0","tarball":"http://registry-npm.ywwl.com/destroy-circular/download/destroy-circular-1.1.0.tgz","integrity":"sha512-r+mM34GGDMoMlUmaHqFcHhg3vxUxICoaYMs0cv+iU6dECYQOiL2+PB5oxT/1IehEeXPPVX6jy7YMv+h38pnL/Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCtn4lozzi9XTx5CuO5lXisbjz95nzmmnygofg1L7bYVQIhAP8TeXdt56SHe6KZUSyknLO6m3zxMrAzfENpOaOq1VqP"}],"size":2163,"noattachment":false,"key":"/destroy-circular/-/destroy-circular-1.1.0.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"jonpacker","email":"contact@jonpacker.com"},"maintainers":[{"name":"jonpacker","email":"contact@jonpacker.com"}],"directories":{},"publish_time":1407244498786,"_cnpm_publish_time":1407244498786},"1.0.1":{"name":"destroy-circular","version":"1.0.1","description":"Replace circular references in an object with a string","main":"dc.js","scripts":{"test":"mocha -R spec"},"repository":{"type":"git","url":"https://github.com/jonpacker/destroy-circular"},"keywords":["destroy","circular","references","replace","string"],"author":{"name":"Jon Packer","email":"contact@jonpacker.com"},"license":"MIT","bugs":{"url":"https://github.com/jonpacker/destroy-circular/issues"},"homepage":"https://github.com/jonpacker/destroy-circular","devDependencies":{"mocha":"^1.21.3"},"dependencies":{"circular":"^1.0.3"},"_id":"destroy-circular@1.0.1","dist":{"shasum":"aee8cd62650a47546032cccefa1bd44c7893d769","tarball":"http://registry-npm.ywwl.com/destroy-circular/download/destroy-circular-1.0.1.tgz","integrity":"sha512-/qAB4HIcCwxlHohE/wPkPFFV8mUtwJuEF7tZSKjXqn/PkPJxi3tgQNemMybHweXEwX0i7YVlcdUHTPb2AVYlIw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICixZbZkcnGLKGRPfiC2UH34rduf59gczFQpFATnDIn9AiEAkyVZoUwkXNL5Yv2j7ct0XoQpGBNjJlBWWz29J+nG3MI="}],"size":1825,"noattachment":false,"key":"/destroy-circular/-/destroy-circular-1.0.1.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"jonpacker","email":"contact@jonpacker.com"},"maintainers":[{"name":"jonpacker","email":"contact@jonpacker.com"}],"directories":{},"publish_time":1407240004697,"_cnpm_publish_time":1407240004697},"1.0.0":{"name":"destroy-circular","version":"1.0.0","description":"Replace circular references in an object with a string","main":"dc.js","scripts":{"test":"mocha -R spec"},"repository":{"type":"git","url":"https://github.com/jonpacker/destroy-circular"},"keywords":["destroy","circular","references","replace","string"],"author":{"name":"Jon Packer","email":"contact@jonpacker.com"},"license":"MIT","bugs":{"url":"https://github.com/jonpacker/destroy-circular/issues"},"homepage":"https://github.com/jonpacker/destroy-circular","devDependencies":{"mocha":"^1.21.3"},"dependencies":{"circular":"^1.0.3"},"_id":"destroy-circular@1.0.0","dist":{"shasum":"e9d80954abc87715335926f5b6bb4b1f79436253","tarball":"http://registry-npm.ywwl.com/destroy-circular/download/destroy-circular-1.0.0.tgz","integrity":"sha512-IsHFvQNG7yirICtPuBe/IB2bturKjpPU9T3KPLa7niF82c98BMX6v73MdeNIhNqmLdDLAguFBSES8fS68cWgnQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCenvDQ1MwyhK8LyrAh78RmvNBx3nRbr90Z8t7W6pKf1QIgbdMvH3RMlu6KaakicZ6riQZptg3OnVorvmpJbGeaDQU="}],"size":798,"noattachment":false,"key":"/destroy-circular/-/destroy-circular-1.0.0.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"jonpacker","email":"contact@jonpacker.com"},"maintainers":[{"name":"jonpacker","email":"contact@jonpacker.com"}],"directories":{},"publish_time":1407239653361,"_cnpm_publish_time":1407239653361}},"readme":"# destroy circular\n\nCreates a copy of an object where all of the circular references are replaced\nby a string `[Circular]`. Useful for protecting against problems when stringifying\nan object when you don't have control over the stringifying. If you can stringify\nthe object yourself, I recommend using [circular](https://github.com/freeformsystems/circular)\ninstead.\n\n## install\n\n```\nnpm install destroy-circular\n```\n\n## usage\n\n```javascript\nvar dc = require('destroy-circular');\nvar obj = {}; var child = {parent: obj}; obj.child = child;\nvar stringifySafeObj = dc(obj);\nconsole.log(stringifySafeObj); // -> { child: { parent: '[Circular]' } }\n```\n\nThe returned object is a copy—the original is not mutated in any way.\n\n## license\n\nMIT\n","_attachments":{},"homepage":"https://github.com/jonpacker/destroy-circular","bugs":{"url":"https://github.com/jonpacker/destroy-circular/issues"},"license":"MIT"}