| 1 |
{ |
| 2 |
"_id": "clean-yaml-object", |
| 3 |
"_rev": "2-85c53ba115e6405eafbd5b28b2dafb42", |
| 4 |
"name": "clean-yaml-object", |
| 5 |
"description": "Clean up an object prior to serialization", |
| 6 |
"dist-tags": { |
| 7 |
"latest": "0.1.0" |
| 8 |
}, |
| 9 |
"versions": { |
| 10 |
"0.0.1": { |
| 11 |
"name": "clean-yaml-object", |
| 12 |
"version": "0.0.1", |
| 13 |
"description": "My flawless module", |
| 14 |
"license": "MIT", |
| 15 |
"repository": { |
| 16 |
"type": "git", |
| 17 |
"url": "git+https://github.com/jamestalmage/clean-yaml-object.git" |
| 18 |
}, |
| 19 |
"author": { |
| 20 |
"name": "James Talmage", |
| 21 |
"email": "[email protected]", |
| 22 |
"url": "github.com/jamestalmage" |
| 23 |
}, |
| 24 |
"engines": { |
| 25 |
"node": ">=0.10.0" |
| 26 |
}, |
| 27 |
"scripts": { |
| 28 |
"test": "xo && nyc --cache --reporter=lcov --reporter=text ava" |
| 29 |
}, |
| 30 |
"files": [ |
| 31 |
"index.js" |
| 32 |
], |
| 33 |
"keywords": [], |
| 34 |
"dependencies": {}, |
| 35 |
"devDependencies": { |
| 36 |
"ava": "^0.10.0", |
| 37 |
"nyc": "^5.3.0", |
| 38 |
"xo": "^0.12.1" |
| 39 |
}, |
| 40 |
"gitHead": "08bdab8163ec8c7b506c2e410e1fb1de7d6a7c86", |
| 41 |
"bugs": { |
| 42 |
"url": "https://github.com/jamestalmage/clean-yaml-object/issues" |
| 43 |
}, |
| 44 |
"homepage": "https://github.com/jamestalmage/clean-yaml-object#readme", |
| 45 |
"_id": "[email protected]", |
| 46 |
"_shasum": "f48ed1af1b2fdba05584544c07c3cdc6c1ad3a38", |
| 47 |
"_from": ".", |
| 48 |
"_npmVersion": "3.4.0", |
| 49 |
"_nodeVersion": "0.10.40", |
| 50 |
"_npmUser": { |
| 51 |
"name": "jamestalmage", |
| 52 |
"email": "[email protected]" |
| 53 |
}, |
| 54 |
"dist": { |
| 55 |
"shasum": "f48ed1af1b2fdba05584544c07c3cdc6c1ad3a38", |
| 56 |
"tarball": "https://registry.npmjs.org/clean-yaml-object/-/clean-yaml-object-0.0.1.tgz" |
| 57 |
}, |
| 58 |
"maintainers": [ |
| 59 |
{ |
| 60 |
"name": "jamestalmage", |
| 61 |
"email": "[email protected]" |
| 62 |
} |
| 63 |
], |
| 64 |
"directories": {} |
| 65 |
}, |
| 66 |
"0.1.0": { |
| 67 |
"name": "clean-yaml-object", |
| 68 |
"version": "0.1.0", |
| 69 |
"description": "Clean up an object prior to serialization", |
| 70 |
"license": "MIT", |
| 71 |
"repository": { |
| 72 |
"type": "git", |
| 73 |
"url": "git+https://github.com/tapjs/clean-yaml-object.git" |
| 74 |
}, |
| 75 |
"author": { |
| 76 |
"name": "James Talmage", |
| 77 |
"email": "[email protected]", |
| 78 |
"url": "github.com/jamestalmage" |
| 79 |
}, |
| 80 |
"engines": { |
| 81 |
"node": ">=0.10.0" |
| 82 |
}, |
| 83 |
"scripts": { |
| 84 |
"test": "xo && nyc --cache --reporter=lcov --reporter=text ava" |
| 85 |
}, |
| 86 |
"files": [ |
| 87 |
"index.js" |
| 88 |
], |
| 89 |
"keywords": [ |
| 90 |
"serialize", |
| 91 |
"clean", |
| 92 |
"dedupe", |
| 93 |
"circular", |
| 94 |
"yaml", |
| 95 |
"json", |
| 96 |
"error" |
| 97 |
], |
| 98 |
"dependencies": {}, |
| 99 |
"devDependencies": { |
| 100 |
"ava": "^0.10.0", |
| 101 |
"coveralls": "^2.11.6", |
| 102 |
"nyc": "^5.3.0", |
| 103 |
"xo": "^0.12.1" |
| 104 |
}, |
| 105 |
"gitHead": "37e3fd40076d7e6f92b9ca9a09a4cf600e6bac24", |
| 106 |
"bugs": { |
| 107 |
"url": "https://github.com/tapjs/clean-yaml-object/issues" |
| 108 |
}, |
| 109 |
"homepage": "https://github.com/tapjs/clean-yaml-object#readme", |
| 110 |
"_id": "[email protected]", |
| 111 |
"_shasum": "63fb110dc2ce1a84dc21f6d9334876d010ae8b68", |
| 112 |
"_from": ".", |
| 113 |
"_npmVersion": "3.5.3", |
| 114 |
"_nodeVersion": "5.3.0", |
| 115 |
"_npmUser": { |
| 116 |
"name": "jamestalmage", |
| 117 |
"email": "[email protected]" |
| 118 |
}, |
| 119 |
"dist": { |
| 120 |
"shasum": "63fb110dc2ce1a84dc21f6d9334876d010ae8b68", |
| 121 |
"tarball": "https://registry.npmjs.org/clean-yaml-object/-/clean-yaml-object-0.1.0.tgz" |
| 122 |
}, |
| 123 |
"maintainers": [ |
| 124 |
{ |
| 125 |
"name": "jamestalmage", |
| 126 |
"email": "[email protected]" |
| 127 |
} |
| 128 |
], |
| 129 |
"directories": {} |
| 130 |
} |
| 131 |
}, |
| 132 |
"readme": "# clean-yaml-object [](https://travis-ci.org/tapjs/clean-yaml-object) [](https://coveralls.io/github/tapjs/clean-yaml-object?branch=master)\n\n> Clean up an object prior to serialization.\n\nReplaces circular references, pretty prints Buffers, and numerous other enhancements. Primarily designed to prepare Errors for serialization to JSON/YAML.\n\nExtracted from [`node-tap`](https://github.com/tapjs/node-tap)\n\n## Install\n\n```\n$ npm install --save clean-yaml-object\n```\n\n\n## Usage\n\n```js\nconst cleanYamlObject = require('clean-yaml-object');\n\ncleanYamlObject(new Error('foo'));\n//=> {name: 'Error', message: 'foo', stack: ...}\n```\n\n\n## API\n\n### cleanYamlObject(input, [filterFn])\n\nReturns a deep copy of `input` that is suitable for serialization. \n\n#### input\n\nType: `*`\n\nAny object.\n\n#### filterFn\n\nType: `callback(propertyName, isRoot, source, target)`\n\nOptional filter callback. Returning `true` will cause the property to be copied. Otherwise it will be skipped\n\n- `propertyName`: The property being copied.\n- `isRoot`: `true` only if `source` is the top level object passed to `copyYamlObject`\n- `source`: The source from which `source[propertyName]` will be copied.\n- `target`: The target object.\n\n## License\n\n\nMIT © [Isaac Z. Schlueter](http://github.com/isaacs) [James Talmage](http://github.com/jamestalmage)\n", |
| 133 |
"maintainers": [ |
| 134 |
{ |
| 135 |
"name": "jamestalmage", |
| 136 |
"email": "[email protected]" |
| 137 |
} |
| 138 |
], |
| 139 |
"time": { |
| 140 |
"modified": "2016-01-16T06:20:58.159Z", |
| 141 |
"created": "2016-01-16T03:51:55.398Z", |
| 142 |
"0.0.1": "2016-01-16T03:51:55.398Z", |
| 143 |
"0.1.0": "2016-01-16T06:20:58.159Z" |
| 144 |
}, |
| 145 |
"homepage": "https://github.com/tapjs/clean-yaml-object#readme", |
| 146 |
"keywords": [ |
| 147 |
"serialize", |
| 148 |
"clean", |
| 149 |
"dedupe", |
| 150 |
"circular", |
| 151 |
"yaml", |
| 152 |
"json", |
| 153 |
"error" |
| 154 |
], |
| 155 |
"repository": { |
| 156 |
"type": "git", |
| 157 |
"url": "git+https://github.com/tapjs/clean-yaml-object.git" |
| 158 |
}, |
| 159 |
"author": { |
| 160 |
"name": "James Talmage", |
| 161 |
"email": "[email protected]", |
| 162 |
"url": "github.com/jamestalmage" |
| 163 |
}, |
| 164 |
"bugs": { |
| 165 |
"url": "https://github.com/tapjs/clean-yaml-object/issues" |
| 166 |
}, |
| 167 |
"license": "MIT", |
| 168 |
"readmeFilename": "readme.md", |
| 169 |
"_attachments": {} |
| 170 |
} |