{"_id":"picker","_rev":"398336","name":"picker","description":"Pick property in json data by string path key","dist-tags":{"latest":"0.1.4"},"maintainers":[{"name":"ragingwind","email":"ragingwind@gmail.com"}],"time":{"modified":"2021-08-04T04:22:02.000Z","created":"2015-04-29T00:29:51.195Z","0.1.4":"2015-04-29T02:44:06.279Z","0.1.3":"2015-04-29T01:09:32.148Z","0.1.2":"2015-04-29T00:43:10.837Z","0.1.1":"2015-04-29T00:31:09.098Z","0.1.0":"2015-04-29T00:29:51.195Z"},"users":{},"author":{"name":"ragingwind","email":"ragingwind@gmail.com","url":"ragingwind.me"},"repository":{"type":"git","url":"https://github.com/ragingwind/picker"},"versions":{"0.1.4":{"name":"picker","version":"0.1.4","description":"Pick property in json data by string path key","license":"MIT","repository":{"type":"git","url":"https://github.com/ragingwind/picker"},"author":{"name":"ragingwind","email":"ragingwind@gmail.com","url":"ragingwind.me"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":[],"dependencies":{},"devDependencies":{"mocha":"*"},"gitHead":"eaede6b324421abc4a87ea24465670f684c85066","bugs":{"url":"https://github.com/ragingwind/picker/issues"},"homepage":"https://github.com/ragingwind/picker","_id":"picker@0.1.4","_shasum":"101b890d34dc387823236af9ba7067660b48d9e8","_from":".","_npmVersion":"2.7.0","_nodeVersion":"0.10.29","_npmUser":{"name":"ragingwind","email":"ragingwind@gmail.com"},"maintainers":[{"name":"ragingwind","email":"ragingwind@gmail.com"}],"dist":{"shasum":"101b890d34dc387823236af9ba7067660b48d9e8","size":1890,"noattachment":false,"key":"/picker/-/picker-0.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/picker/download/picker-0.1.4.tgz"},"directories":{},"publish_time":1430275446279,"_cnpm_publish_time":1430275446279,"_hasShrinkwrap":false},"0.1.3":{"name":"picker","version":"0.1.3","description":"Pick property in json data by string path key","license":"MIT","repository":{"type":"git","url":"https://github.com/ragingwind/picker"},"author":{"name":"ragingwind","email":"ragingwind@gmail.com","url":"ragingwind.me"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":[],"dependencies":{},"devDependencies":{"mocha":"*"},"gitHead":"f8897978ca175656b29d404840a619a64c9f0a30","bugs":{"url":"https://github.com/ragingwind/picker/issues"},"homepage":"https://github.com/ragingwind/picker","_id":"picker@0.1.3","_shasum":"db48d86eade6c7196f0951346156ba1a9aefa4ab","_from":".","_npmVersion":"2.7.0","_nodeVersion":"0.10.29","_npmUser":{"name":"ragingwind","email":"ragingwind@gmail.com"},"maintainers":[{"name":"ragingwind","email":"ragingwind@gmail.com"}],"dist":{"shasum":"db48d86eade6c7196f0951346156ba1a9aefa4ab","size":1769,"noattachment":false,"key":"/picker/-/picker-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/picker/download/picker-0.1.3.tgz"},"directories":{},"publish_time":1430269772148,"_cnpm_publish_time":1430269772148,"_hasShrinkwrap":false},"0.1.2":{"name":"picker","version":"0.1.2","description":"Pick property in json data by string path key","license":"MIT","repository":{"type":"git","url":"https://github.com/ragingwind/picker"},"author":{"name":"ragingwind","email":"ragingwind@gmail.com","url":"ragingwind.me"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":[],"dependencies":{},"devDependencies":{"mocha":"*"},"gitHead":"640c4d4c97d843dc27f5b87273a13026ba8c9cea","bugs":{"url":"https://github.com/ragingwind/picker/issues"},"homepage":"https://github.com/ragingwind/picker","_id":"picker@0.1.2","_shasum":"d44b5ecb12ed9e86c086643fe9bcc4ee227f049a","_from":".","_npmVersion":"2.7.0","_nodeVersion":"0.10.29","_npmUser":{"name":"ragingwind","email":"ragingwind@gmail.com"},"maintainers":[{"name":"ragingwind","email":"ragingwind@gmail.com"}],"dist":{"shasum":"d44b5ecb12ed9e86c086643fe9bcc4ee227f049a","size":1812,"noattachment":false,"key":"/picker/-/picker-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/picker/download/picker-0.1.2.tgz"},"directories":{},"publish_time":1430268190837,"_cnpm_publish_time":1430268190837,"_hasShrinkwrap":false},"0.1.1":{"name":"picker","version":"0.1.1","description":"My tremendous module","license":"MIT","repository":{"type":"git","url":"https://github.com/ragingwind/picker"},"author":{"name":"ragingwind","email":"ragingwind@gmail.com","url":"ragingwind.me"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":[],"dependencies":{},"devDependencies":{"mocha":"*"},"gitHead":"51fcc0c674b51d140fb80cce0ef10a19d7782cf3","bugs":{"url":"https://github.com/ragingwind/picker/issues"},"homepage":"https://github.com/ragingwind/picker","_id":"picker@0.1.1","_shasum":"977466d5630fdd5730647551bb9cbb24daae4412","_from":".","_npmVersion":"2.7.0","_nodeVersion":"0.10.29","_npmUser":{"name":"ragingwind","email":"ragingwind@gmail.com"},"maintainers":[{"name":"ragingwind","email":"ragingwind@gmail.com"}],"dist":{"shasum":"977466d5630fdd5730647551bb9cbb24daae4412","size":1753,"noattachment":false,"key":"/picker/-/picker-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/picker/download/picker-0.1.1.tgz"},"directories":{},"publish_time":1430267469098,"_cnpm_publish_time":1430267469098,"_hasShrinkwrap":false},"0.1.0":{"name":"picker","version":"0.1.0","description":"My tremendous module","license":"MIT","repository":{"type":"git","url":"https://github.com/ragingwind/picker"},"author":{"name":"ragingwind","email":"ragingwind@gmail.com","url":"ragingwind.me"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":[],"dependencies":{},"devDependencies":{"mocha":"*"},"gitHead":"c5ec01b40cac51226555b07f5e1d7889a409e1da","bugs":{"url":"https://github.com/ragingwind/picker/issues"},"homepage":"https://github.com/ragingwind/picker","_id":"picker@0.1.0","_shasum":"7ee9e678913bd7986f0654cc03a9fd16e55b2175","_from":".","_npmVersion":"2.7.0","_nodeVersion":"0.10.29","_npmUser":{"name":"ragingwind","email":"ragingwind@gmail.com"},"maintainers":[{"name":"ragingwind","email":"ragingwind@gmail.com"}],"dist":{"shasum":"7ee9e678913bd7986f0654cc03a9fd16e55b2175","size":1754,"noattachment":false,"key":"/picker/-/picker-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/picker/download/picker-0.1.0.tgz"},"directories":{},"publish_time":1430267391195,"_cnpm_publish_time":1430267391195,"_hasShrinkwrap":false}},"readme":"# picker [![Build Status](https://travis-ci.org/ragingwind/picker.svg?branch=master)](https://travis-ci.org/ragingwind/picker)\n\n> Pick property in json data by string path key\n\n\n## Install\n\n```\n$ npm install --save picker\n```\n\n\n## Usage\n\n```js\nvar picker = require('picker');\n\nvar prop = picker(json, 'json.properties.object.name');\nconsole.log(prop.value, prop.key, prop.container);\n\nvar prop = picker(json, 'json.properties.array.[0]');\nconsole.log(prop.container[0]);\n```\n\n\n## API\n\n### picker(jsonData, path)\n\n#### input\n\n*Required*  \nType: `json`\n\nTarget json data contains name and value to pick\n\n#### path\n\n*Required*  \nType: `string`\n\nPath to get to target property. Using string index to get a path to `Array` type property. You can find more information in the test.js\n\n## Returns\n\nIf picker can find a target then will returns its parent, key and value of object or not picker returns null.\n\n## License\n\nMIT © [ragingwind](http://ragingwind.me)\n","_attachments":{},"homepage":"https://github.com/ragingwind/picker","bugs":{"url":"https://github.com/ragingwind/picker/issues"},"license":"MIT"}