{"name":"clean-yaml-object","version":"0.0.1","description":"My flawless module","license":"MIT","repository":{"type":"git","url":"git+https://github.com/jamestalmage/clean-yaml-object.git"},"author":{"name":"James Talmage","email":"james@talmage.io","url":"github.com/jamestalmage"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && nyc --cache --reporter=lcov --reporter=text ava"},"files":["index.js"],"keywords":[],"dependencies":{},"devDependencies":{"ava":"^0.10.0","nyc":"^5.3.0","xo":"^0.12.1"},"gitHead":"08bdab8163ec8c7b506c2e410e1fb1de7d6a7c86","bugs":{"url":"https://github.com/jamestalmage/clean-yaml-object/issues"},"homepage":"https://github.com/jamestalmage/clean-yaml-object#readme","_id":"clean-yaml-object@0.0.1","_shasum":"f48ed1af1b2fdba05584544c07c3cdc6c1ad3a38","_from":".","_npmVersion":"3.4.0","_nodeVersion":"0.10.40","_npmUser":{"name":"jamestalmage","email":"james@talmage.io"},"dist":{"shasum":"f48ed1af1b2fdba05584544c07c3cdc6c1ad3a38","tarball":"http://registry-npm.ywwl.com/clean-yaml-object/download/clean-yaml-object-0.0.1.tgz","integrity":"sha512-vi8Ft4LLRs7BFo0NHZ74tFJswUaaxXzdVYIwdwfkyqINEnFWaxJAPNBx/Dmj+6DhewjltNPNdBnUlILmuInDIA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF0tPWN71qK1QoTnuscfLFlNdkJBY3prNneotziTydG2AiEA3IoHEDB6b+bRKi5WfAMQQ9ujzsMv6gAWwND8dplrp74="}],"size":2714,"noattachment":false,"key":"/clean-yaml-object/-/clean-yaml-object-0.0.1.tgz"},"maintainers":[{"name":"jamestalmage","email":"james@talmage.io"}],"directories":{},"readme":"# clean-yaml-object [![Build Status](https://travis-ci.org/tapjs/clean-yaml-object.svg?branch=master)](https://travis-ci.org/tapjs/clean-yaml-object) [![Coverage Status](https://coveralls.io/repos/tapjs/clean-yaml-object/badge.svg?branch=master&service=github)](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","publish_time":1452916315398,"_cnpm_publish_time":1452916315398,"dist-tags":{"latest":"1.0.0"}}