{"name":"fill-keys","main":"index.js","version":"1.0.2","description":"Fill keys in a destination that are defined on the source","license":"MIT","repository":{"type":"git","url":"git+https://github.com/bendrucker/fill-keys.git"},"author":{"name":"Ben Drucker","email":"bvdrucker@gmail.com","url":"bendrucker.me"},"engines":{"node":">=0.10.0"},"scripts":{"test":"standard && tape test.js"},"keywords":["keys","object","copy"],"dependencies":{"is-object":"~1.0.1","merge-descriptors":"~1.0.0"},"devDependencies":{"tape":"^4.0.0","standard":"^4.0.0"},"files":["index.js","readme.md"],"gitHead":"b2a12c4bbbcc1dfea2a9603ba8d1ea979503dbb1","bugs":{"url":"https://github.com/bendrucker/fill-keys/issues"},"homepage":"https://github.com/bendrucker/fill-keys#readme","_id":"fill-keys@1.0.2","_shasum":"9a8fa36f4e8ad634e3bf6b4f3c8882551452eb20","_from":".","_npmVersion":"3.3.3","_nodeVersion":"2.2.1","_npmUser":{"name":"bendrucker","email":"bvdrucker@gmail.com"},"dist":{"shasum":"9a8fa36f4e8ad634e3bf6b4f3c8882551452eb20","tarball":"http://registry-npm.ywwl.com/fill-keys/download/fill-keys-1.0.2.tgz","integrity":"sha512-tcgI872xXjwFF4xgQmLxi76GnwJG3g/3isB1l4/G5Z4zrbddGpBjqZCO9oEAcB5wX0Hj/5iQB3toxfO7in1hHA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDuuecCacEjIc7a123KHwdLWGJEf4+z+HU2v4P4y2Q7CAiAbdi/UCe1nzkKZCJ1M3tOPrkSZRhBKY2Axr/BLtxpqQQ=="}],"size":1912,"noattachment":false,"key":"/fill-keys/-/fill-keys-1.0.2.tgz"},"maintainers":[{"name":"bendrucker","email":"bvdrucker@gmail.com"}],"directories":{},"readme":"# fill-keys\n\n> Fill keys in a destination that are defined on the source. Copies descriptors so properties like `enumerable` will persist. \n\n\n## Install\n\n```\n$ npm install --save fill-keys\n```\n\n\n## Usage\n\n```js\nconst fillKeys = require('fill-keys')\n\nfillKeys(destination, source);\n//=> missing destination keys in source are copied\n```\n\nfill-keys will copy descriptors. It will also copy the `source.prototype` properties onto `destination.prototype` if both `destination` and `source` are functions. \n\n## API\n\n#### `fillKeys(destination, source)` -> `destination`\n\n#### `destination`\n\n*Required*  \nType: `any`\n\nThe destination object where keys from `source` will be added.\n\n#### source\n\n*Required*  \nType: `any`\n\nThe source object from which to copy properties.\n\n## License\n\nMIT © [Ben Drucker](http://bendrucker.me)\n","publish_time":1444055704025,"_cnpm_publish_time":1444055704025,"dist-tags":{"latest":"2.0.0"}}