{"name":"fill-keys","main":"index.js","version":"2.0.0","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":">= 16"},"scripts":{"test":"standard && tape test.js"},"keywords":["keys","object","copy"],"dependencies":{"is-object":"~1.0.2","merge-descriptors":"~1.0.1"},"devDependencies":{"tape":"^5.6.1","standard":"^17.0.0"},"gitHead":"6653c550504eed7fa66d270e1528cf8dda8d655a","bugs":{"url":"https://github.com/bendrucker/fill-keys/issues"},"homepage":"https://github.com/bendrucker/fill-keys#readme","_id":"fill-keys@2.0.0","_nodeVersion":"18.7.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-kV9TYVw2iSqv13VJYLyqIFQARjhMKVESqATjZk7D6G+YxnOGyaIMJLUDEEc6RapupEEeKuMQV4AFt1j87a3XaQ==","shasum":"26fd13cef4cd9b44a41a3f8136b9b8c1af8ffa01","tarball":"http://registry-npm.ywwl.com/fill-keys/download/fill-keys-2.0.0.tgz","fileCount":4,"unpackedSize":3227,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID0tSRf4E7rFcG4pQ+zD3B2NXyhN8+fUcdvXB+TQ9SA0AiBtXoNjTbYHOBAz7DEtvKNKJQXG8s6mqtd8aE+NYptIGQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjSYzwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpT4Q/+K6g1sHVh8BehwbWDUr0pVv7uKVtiQJqXU91JIVsC4n+OCZGM\r\naBbgOnD1IJpzlLLwhLKhETy/FngCcCHXpiqhiSQ8OFCzYEsEfrrMKYInqWET\r\nZeL5DFuvGP2HHxkVc0fLOHmrFv+rqyvfyHRU3lIXAPHZGthfWUSu87xxEE6k\r\n2ESaSh5R5vXE/RMBLgE6vq6cHFriZhn1COFk8jvsS4HWCABA+FxjNKKKHEq0\r\nxW6xGMYWLi9QGyVNkjcWxl7RVi2FF5N/1wfLnMjLTobsS5tCco8iiQ2d/Xd8\r\nZkAclrknYPCJ0KvGGV53WbWBmgmgJv81Ltqwbc5bXmxBp1z6MWX38PDOwEHQ\r\nBq4a8eLUVbZmtRI81O3x8Cklbzh0jQHTek7VNBjk3Dxz/u5gwjRmkdIT4sQG\r\nrZBE1753CY0R6mVAaLb69CVmyErUwzBR+TPZDwoaK680W6Kw28jhnEcdK/ju\r\nxt2+iEmyZxdRWf7kvsKPpHc71KNveK3sViraYbHkJg8bg61rtJTYBJFW7w69\r\nxrEtwQxIfdR+/pZ5gZAuZa+RgKWNEY7Y1i24E0rTYhORZ9HE6/Ed51K8P9UV\r\nA2XMiPHMKTDtWpVXihesJKbiHMViPe1W/OZdv7Q+hxaIAWQyCiL8ADSrV5aa\r\nqdCPJS+Ja+Ce21sFi1oAY7nojrxIcxbhtRA=\r\n=p3cr\r\n-----END PGP SIGNATURE-----\r\n","size":1662,"noattachment":false,"key":"/fill-keys/-/fill-keys-2.0.0.tgz"},"_npmUser":{"name":"bendrucker","email":"bvdrucker@gmail.com"},"directories":{},"maintainers":[{"name":"bendrucker","email":"bvdrucker@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fill-keys_2.0.0_1665764592770_0.5267728487041214"},"_hasShrinkwrap":false,"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":1665764592960,"_cnpm_publish_time":1665764592960,"dist-tags":{"latest":"2.0.0"}}