{"id":20073504,"url":"https://github.com/ragingwind/picker","last_synced_at":"2025-05-05T21:30:51.452Z","repository":{"id":31202424,"uuid":"34763233","full_name":"ragingwind/picker","owner":"ragingwind","description":"Pick property in json data by string path key","archived":false,"fork":false,"pushed_at":"2015-04-29T02:50:43.000Z","size":132,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-09T04:24:49.436Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ragingwind.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-29T00:28:27.000Z","updated_at":"2016-08-31T09:16:23.000Z","dependencies_parsed_at":"2022-09-09T08:10:58.549Z","dependency_job_id":null,"html_url":"https://github.com/ragingwind/picker","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ragingwind%2Fpicker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ragingwind%2Fpicker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ragingwind%2Fpicker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ragingwind%2Fpicker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ragingwind","download_url":"https://codeload.github.com/ragingwind/picker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250934936,"owners_count":21510551,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T14:46:25.385Z","updated_at":"2025-05-05T21:30:51.159Z","avatar_url":"https://github.com/ragingwind.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# picker [![Build Status](https://travis-ci.org/ragingwind/picker.svg?branch=master)](https://travis-ci.org/ragingwind/picker)\n\n\u003e 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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fragingwind%2Fpicker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fragingwind%2Fpicker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fragingwind%2Fpicker/lists"}