c38c03b9ec88698251c70c6a9f3237ce04db8044
[platform/upstream/nodejs.git] / deps / npm / node_modules / request / node_modules / json-stringify-safe / package.json
1 {
2   "name": "json-stringify-safe",
3   "version": "5.0.0",
4   "description": "Like JSON.stringify, but doesn't blow up on circular refs",
5   "main": "stringify.js",
6   "scripts": {
7     "test": "node test.js"
8   },
9   "repository": {
10     "type": "git",
11     "url": "git://github.com/isaacs/json-stringify-safe"
12   },
13   "keywords": [
14     "json",
15     "stringify",
16     "circular",
17     "safe"
18   ],
19   "author": {
20     "name": "Isaac Z. Schlueter",
21     "email": "i@izs.me",
22     "url": "http://blog.izs.me"
23   },
24   "license": "BSD",
25   "readmeFilename": "README.md",
26   "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",
27   "bugs": {
28     "url": "https://github.com/isaacs/json-stringify-safe/issues"
29   },
30   "homepage": "https://github.com/isaacs/json-stringify-safe",
31   "_id": "json-stringify-safe@5.0.0",
32   "dist": {
33     "shasum": "4c1f228b5050837eba9d21f50c2e6e320624566e"
34   },
35   "_from": "json-stringify-safe@~5.0.0",
36   "_resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.0.tgz"
37 }