{"_id":"plucker","_rev":"1656895","name":"plucker","description":"Pluck nested properties from an object","dist-tags":{"latest":"0.0.0"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"}],"time":{"modified":"2026-11-01T04:38:51.000Z","created":"2014-03-20T15:50:33.826Z","0.0.0":"2014-03-20T15:50:33.826Z"},"users":{},"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://hughsk.io/"},"repository":{"type":"git","url":"git://github.com/hughsk/plucker"},"versions":{"0.0.0":{"name":"plucker","description":"Pluck nested properties from an object","version":"0.0.0","main":"index.js","dependencies":{},"devDependencies":{"tape":"^2.10.2","faucet":"^0.0.1"},"scripts":{"test":"node test | faucet"},"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://hughsk.io/"},"license":"MIT","homepage":"http://hughsk.github.io/plucker","repository":{"type":"git","url":"git://github.com/hughsk/plucker"},"bugs":{"url":"https://github.com/hughsk/plucker/issues"},"keywords":["pluck","key","nested","property","object","get"],"_id":"plucker@0.0.0","dist":{"shasum":"2ffa24e03ab2cffa4e75adc1df70f25623c45d09","tarball":"http://registry-npm.ywwl.com/plucker/download/plucker-0.0.0.tgz","integrity":"sha512-qxNaHy0mKKyrKXb3vxBc+b0XvvQyBf3am2it1ZNKjrPhbvsEaKcSjybMhwbHTmEFV67vi0+iFZTkdStyj1zfig==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCIv/bqjgrb4gFIaEMPjCEVEnA0vDEC4QutjyESwJrKJQIgIkSGcjPvVJGmhuEIGbigxcAmksoYAeOMdYI//T+/Nf0="}],"size":2346,"noattachment":false,"key":"/plucker/-/plucker-0.0.0.tgz"},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"hughsk","email":"hughskennedy@gmail.com"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"}],"publish_time":1395330633826,"_cnpm_publish_time":1395330633826}},"readme":"# plucker [![Flattr this!](https://api.flattr.com/button/flattr-badge-large.png)](https://flattr.com/submit/auto?user_id=hughskennedy&url=http://github.com/hughsk/plucker&title=plucker&description=hughsk/plucker%20on%20GitHub&language=en_GB&tags=flattr,github,javascript&category=software)[![experimental](http://hughsk.github.io/stability-badges/dist/experimental.svg)](http://github.com/hughsk/stability-badges) #\n\nPluck nested properties from an object.\n\n## Usage ##\n\n[![plucker](https://nodei.co/npm/plucker.png?mini=true)](https://nodei.co/npm/plucker)\n\n### pluck = plucker(path) ###\n\nGiven a dot-delimted property `path`, returns a plucking function.\n\nYou can also pass in an array of string keys, in case you want to avoid\nsplitting a key which is intended to have dots in it.\n\n### pluck(object) ###\n\nPass this function an object to pluck the nested value from it.\n\nTo pluck values from an array, you can simply use it with `[].map`, like so:\n\n``` javascript\nvar pluck = require('plucker')\nvar array = require('./data.json')\n\nreturn array.map(\n  pluck('some.nested.value')\n)\n```\n\n### plucker(path, object) ###\n\nShorthand for `plucker(path)(object)`.\n\n## License ##\n\nMIT. See [LICENSE.md](http://github.com/hughsk/plucker/blob/master/LICENSE.md) for details.\n","_attachments":{},"homepage":"http://hughsk.github.io/plucker","bugs":{"url":"https://github.com/hughsk/plucker/issues"},"license":"MIT"}