| 1 |
{ |
| 2 |
"_id": "json-stringify-safe", |
| 3 |
"_rev": "74-1abf7e8faafcb7fa6ad8327c3b0481f3", |
| 4 |
"name": "json-stringify-safe", |
| 5 |
"description": "Like JSON.stringify, but doesn't blow up on circular refs.", |
| 6 |
"dist-tags": { |
| 7 |
"latest": "5.0.1" |
| 8 |
}, |
| 9 |
"versions": { |
| 10 |
"2.0.0": { |
| 11 |
"name": "json-stringify-safe", |
| 12 |
"version": "2.0.0", |
| 13 |
"description": "Like JSON.stringify, but doesn't blow up on circular refs", |
| 14 |
"main": "stringify.js", |
| 15 |
"scripts": { |
| 16 |
"test": "node test.js" |
| 17 |
}, |
| 18 |
"repository": { |
| 19 |
"type": "git", |
| 20 |
"url": "git://github.com/isaacs/json-stringify-safe" |
| 21 |
}, |
| 22 |
"keywords": [ |
| 23 |
"json", |
| 24 |
"stringify", |
| 25 |
"circular", |
| 26 |
"safe" |
| 27 |
], |
| 28 |
"author": { |
| 29 |
"name": "Isaac Z. Schlueter", |
| 30 |
"email": "[email protected]", |
| 31 |
"url": "http://blog.izs.me" |
| 32 |
}, |
| 33 |
"license": "BSD", |
| 34 |
"_id": "[email protected]", |
| 35 |
"dist": { |
| 36 |
"shasum": "3f5e856825d4ffb9deea1156f79c47adab7f9c44", |
| 37 |
"tarball": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-2.0.0.tgz" |
| 38 |
}, |
| 39 |
"_from": ".", |
| 40 |
"_npmVersion": "1.2.12", |
| 41 |
"_npmUser": { |
| 42 |
"name": "isaacs", |
| 43 |
"email": "[email protected]" |
| 44 |
}, |
| 45 |
"maintainers": [ |
| 46 |
{ |
| 47 |
"name": "isaacs", |
| 48 |
"email": "[email protected]" |
| 49 |
} |
| 50 |
], |
| 51 |
"directories": {} |
| 52 |
}, |
| 53 |
"3.0.0": { |
| 54 |
"name": "json-stringify-safe", |
| 55 |
"version": "3.0.0", |
| 56 |
"description": "Like JSON.stringify, but doesn't blow up on circular refs", |
| 57 |
"main": "stringify.js", |
| 58 |
"scripts": { |
| 59 |
"test": "node test.js" |
| 60 |
}, |
| 61 |
"repository": { |
| 62 |
"type": "git", |
| 63 |
"url": "git://github.com/isaacs/json-stringify-safe" |
| 64 |
}, |
| 65 |
"keywords": [ |
| 66 |
"json", |
| 67 |
"stringify", |
| 68 |
"circular", |
| 69 |
"safe" |
| 70 |
], |
| 71 |
"author": { |
| 72 |
"name": "Isaac Z. Schlueter", |
| 73 |
"email": "[email protected]", |
| 74 |
"url": "http://blog.izs.me" |
| 75 |
}, |
| 76 |
"license": "BSD", |
| 77 |
"_id": "[email protected]", |
| 78 |
"dist": { |
| 79 |
"shasum": "9db7b0e530c7f289c5e8c8432af191c2ff75a5b3", |
| 80 |
"tarball": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-3.0.0.tgz" |
| 81 |
}, |
| 82 |
"_from": ".", |
| 83 |
"_npmVersion": "1.2.12", |
| 84 |
"_npmUser": { |
| 85 |
"name": "isaacs", |
| 86 |
"email": "[email protected]" |
| 87 |
}, |
| 88 |
"maintainers": [ |
| 89 |
{ |
| 90 |
"name": "isaacs", |
| 91 |
"email": "[email protected]" |
| 92 |
} |
| 93 |
], |
| 94 |
"directories": {} |
| 95 |
}, |
| 96 |
"4.0.0": { |
| 97 |
"name": "json-stringify-safe", |
| 98 |
"version": "4.0.0", |
| 99 |
"description": "Like JSON.stringify, but doesn't blow up on circular refs", |
| 100 |
"main": "stringify.js", |
| 101 |
"scripts": { |
| 102 |
"test": "node test.js" |
| 103 |
}, |
| 104 |
"repository": { |
| 105 |
"type": "git", |
| 106 |
"url": "git://github.com/isaacs/json-stringify-safe" |
| 107 |
}, |
| 108 |
"keywords": [ |
| 109 |
"json", |
| 110 |
"stringify", |
| 111 |
"circular", |
| 112 |
"safe" |
| 113 |
], |
| 114 |
"author": { |
| 115 |
"name": "Isaac Z. Schlueter", |
| 116 |
"email": "[email protected]", |
| 117 |
"url": "http://blog.izs.me" |
| 118 |
}, |
| 119 |
"license": "BSD", |
| 120 |
"_id": "[email protected]", |
| 121 |
"dist": { |
| 122 |
"shasum": "77c271aaea54302e68efeaccb56abbf06a9b1a54", |
| 123 |
"tarball": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-4.0.0.tgz" |
| 124 |
}, |
| 125 |
"_from": ".", |
| 126 |
"_npmVersion": "1.2.14", |
| 127 |
"_npmUser": { |
| 128 |
"name": "isaacs", |
| 129 |
"email": "[email protected]" |
| 130 |
}, |
| 131 |
"maintainers": [ |
| 132 |
{ |
| 133 |
"name": "isaacs", |
| 134 |
"email": "[email protected]" |
| 135 |
} |
| 136 |
], |
| 137 |
"directories": {} |
| 138 |
}, |
| 139 |
"5.0.0": { |
| 140 |
"name": "json-stringify-safe", |
| 141 |
"version": "5.0.0", |
| 142 |
"description": "Like JSON.stringify, but doesn't blow up on circular refs", |
| 143 |
"main": "stringify.js", |
| 144 |
"scripts": { |
| 145 |
"test": "node test.js" |
| 146 |
}, |
| 147 |
"repository": { |
| 148 |
"type": "git", |
| 149 |
"url": "git://github.com/isaacs/json-stringify-safe" |
| 150 |
}, |
| 151 |
"keywords": [ |
| 152 |
"json", |
| 153 |
"stringify", |
| 154 |
"circular", |
| 155 |
"safe" |
| 156 |
], |
| 157 |
"author": { |
| 158 |
"name": "Isaac Z. Schlueter", |
| 159 |
"email": "[email protected]", |
| 160 |
"url": "http://blog.izs.me" |
| 161 |
}, |
| 162 |
"license": "BSD", |
| 163 |
"bugs": { |
| 164 |
"url": "https://github.com/isaacs/json-stringify-safe/issues" |
| 165 |
}, |
| 166 |
"_id": "[email protected]", |
| 167 |
"dist": { |
| 168 |
"shasum": "4c1f228b5050837eba9d21f50c2e6e320624566e", |
| 169 |
"tarball": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.0.tgz" |
| 170 |
}, |
| 171 |
"_from": ".", |
| 172 |
"_npmVersion": "1.3.6", |
| 173 |
"_npmUser": { |
| 174 |
"name": "isaacs", |
| 175 |
"email": "[email protected]" |
| 176 |
}, |
| 177 |
"maintainers": [ |
| 178 |
{ |
| 179 |
"name": "isaacs", |
| 180 |
"email": "[email protected]" |
| 181 |
} |
| 182 |
], |
| 183 |
"directories": {} |
| 184 |
}, |
| 185 |
"5.0.1": { |
| 186 |
"name": "json-stringify-safe", |
| 187 |
"version": "5.0.1", |
| 188 |
"description": "Like JSON.stringify, but doesn't blow up on circular refs.", |
| 189 |
"keywords": [ |
| 190 |
"json", |
| 191 |
"stringify", |
| 192 |
"circular", |
| 193 |
"safe" |
| 194 |
], |
| 195 |
"homepage": "https://github.com/isaacs/json-stringify-safe", |
| 196 |
"bugs": { |
| 197 |
"url": "https://github.com/isaacs/json-stringify-safe/issues" |
| 198 |
}, |
| 199 |
"author": { |
| 200 |
"name": "Isaac Z. Schlueter", |
| 201 |
"email": "[email protected]", |
| 202 |
"url": "http://blog.izs.me" |
| 203 |
}, |
| 204 |
"contributors": [ |
| 205 |
{ |
| 206 |
"name": "Andri Möll", |
| 207 |
"email": "[email protected]", |
| 208 |
"url": "http://themoll.com" |
| 209 |
} |
| 210 |
], |
| 211 |
"license": "ISC", |
| 212 |
"repository": { |
| 213 |
"type": "git", |
| 214 |
"url": "git://github.com/isaacs/json-stringify-safe.git" |
| 215 |
}, |
| 216 |
"main": "stringify.js", |
| 217 |
"scripts": { |
| 218 |
"test": "node test.js" |
| 219 |
}, |
| 220 |
"devDependencies": { |
| 221 |
"mocha": ">= 2.1.0 < 3", |
| 222 |
"must": ">= 0.12 < 0.13", |
| 223 |
"sinon": ">= 1.12.2 < 2" |
| 224 |
}, |
| 225 |
"gitHead": "3890dceab3ad14f8701e38ca74f38276abc76de5", |
| 226 |
"_id": "[email protected]", |
| 227 |
"_shasum": "1296a2d58fd45f19a0f6ce01d65701e2c735b6eb", |
| 228 |
"_from": ".", |
| 229 |
"_npmVersion": "2.10.0", |
| 230 |
"_nodeVersion": "2.0.1", |
| 231 |
"_npmUser": { |
| 232 |
"name": "isaacs", |
| 233 |
"email": "[email protected]" |
| 234 |
}, |
| 235 |
"dist": { |
| 236 |
"shasum": "1296a2d58fd45f19a0f6ce01d65701e2c735b6eb", |
| 237 |
"tarball": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz" |
| 238 |
}, |
| 239 |
"maintainers": [ |
| 240 |
{ |
| 241 |
"name": "isaacs", |
| 242 |
"email": "[email protected]" |
| 243 |
}, |
| 244 |
{ |
| 245 |
"name": "moll", |
| 246 |
"email": "[email protected]" |
| 247 |
} |
| 248 |
], |
| 249 |
"directories": {} |
| 250 |
} |
| 251 |
}, |
| 252 |
"readme": "# json-stringify-safe\n\nLike JSON.stringify, but doesn't throw on circular references.\n\n## Usage\n\nTakes the same arguments as `JSON.stringify`.\n\n```javascript\nvar stringify = require('json-stringify-safe');\nvar circularObj = {};\ncircularObj.circularRef = circularObj;\ncircularObj.list = [ circularObj, circularObj ];\nconsole.log(stringify(circularObj, null, 2));\n```\n\nOutput:\n\n```json\n{\n \"circularRef\": \"[Circular]\",\n \"list\": [\n \"[Circular]\",\n \"[Circular]\"\n ]\n}\n```\n\n## Details\n\n```\nstringify(obj, serializer, indent, decycler)\n```\n\nThe first three arguments are the same as to JSON.stringify. The last\nis an argument that's only used when the object has been seen already.\n\nThe default `decycler` function returns the string `'[Circular]'`.\nIf, for example, you pass in `function(k,v){}` (return nothing) then it\nwill prune cycles. If you pass in `function(k,v){ return {foo: 'bar'}}`,\nthen cyclical objects will always be represented as `{\"foo\":\"bar\"}` in\nthe result.\n\n```\nstringify.getSerialize(serializer, decycler)\n```\n\nReturns a serializer that can be used elsewhere. This is the actual\nfunction that's passed to JSON.stringify.\n\n**Note** that the function returned from `getSerialize` is stateful for now, so\ndo **not** use it more than once.\n", |
| 253 |
"maintainers": [ |
| 254 |
{ |
| 255 |
"name": "isaacs", |
| 256 |
"email": "[email protected]" |
| 257 |
}, |
| 258 |
{ |
| 259 |
"name": "moll", |
| 260 |
"email": "[email protected]" |
| 261 |
} |
| 262 |
], |
| 263 |
"time": { |
| 264 |
"modified": "2018-03-01T20:29:36.063Z", |
| 265 |
"created": "2013-02-19T19:01:58.271Z", |
| 266 |
"2.0.0": "2013-02-19T19:02:04.205Z", |
| 267 |
"3.0.0": "2013-02-19T19:22:41.788Z", |
| 268 |
"4.0.0": "2013-03-13T06:31:31.741Z", |
| 269 |
"5.0.0": "2013-08-02T20:28:17.007Z", |
| 270 |
"5.0.1": "2015-05-19T01:42:09.719Z" |
| 271 |
}, |
| 272 |
"author": { |
| 273 |
"name": "Isaac Z. Schlueter", |
| 274 |
"email": "[email protected]", |
| 275 |
"url": "http://blog.izs.me" |
| 276 |
}, |
| 277 |
"repository": { |
| 278 |
"type": "git", |
| 279 |
"url": "git://github.com/isaacs/json-stringify-safe.git" |
| 280 |
}, |
| 281 |
"users": { |
| 282 |
"dbrockman": true, |
| 283 |
"dubban": true, |
| 284 |
"fotomut": true, |
| 285 |
"boustanihani": true, |
| 286 |
"thethomaseffect": true, |
| 287 |
"oceanswave": true, |
| 288 |
"morlay": true, |
| 289 |
"mastayoda": true, |
| 290 |
"warapitiya": true, |
| 291 |
"kurt.pattyn": true, |
| 292 |
"koulmomo": true, |
| 293 |
"nickeltobias": true, |
| 294 |
"tobiasnickel": true, |
| 295 |
"calmwinds": true, |
| 296 |
"nukisman": true, |
| 297 |
"jsumners": true, |
| 298 |
"srokap": true, |
| 299 |
"hasithaishere": true, |
| 300 |
"t2ym": true, |
| 301 |
"troygizzi": true, |
| 302 |
"deadratfink": true, |
| 303 |
"magicmind": true, |
| 304 |
"mojaray2k": true, |
| 305 |
"dzhou777": true, |
| 306 |
"froguard": true, |
| 307 |
"wukaidong": true, |
| 308 |
"456wyc": true, |
| 309 |
"anoubis": true, |
| 310 |
"lunaroyster": true, |
| 311 |
"alexxnica": true, |
| 312 |
"ivan.sh": true, |
| 313 |
"kontrax": true, |
| 314 |
"shuoshubao": true, |
| 315 |
"zhenguo.zhao": true, |
| 316 |
"d3ck": true |
| 317 |
}, |
| 318 |
"keywords": [ |
| 319 |
"json", |
| 320 |
"stringify", |
| 321 |
"circular", |
| 322 |
"safe" |
| 323 |
], |
| 324 |
"bugs": { |
| 325 |
"url": "https://github.com/isaacs/json-stringify-safe/issues" |
| 326 |
}, |
| 327 |
"license": "ISC", |
| 328 |
"readmeFilename": "README.md", |
| 329 |
"homepage": "https://github.com/isaacs/json-stringify-safe", |
| 330 |
"contributors": [ |
| 331 |
{ |
| 332 |
"name": "Andri Möll", |
| 333 |
"email": "[email protected]", |
| 334 |
"url": "http://themoll.com" |
| 335 |
} |
| 336 |
], |
| 337 |
"_attachments": {} |
| 338 |
} |