{"id":22733467,"url":"https://github.com/strikeentco/pick-deep","last_synced_at":"2025-04-14T01:54:40.678Z","repository":{"id":141946209,"uuid":"125887967","full_name":"strikeentco/pick-deep","owner":"strikeentco","description":"Creates an object composed of the picked object properties from a nested object using a dot path or custom separator","archived":false,"fork":false,"pushed_at":"2018-03-19T16:39:58.000Z","size":42,"stargazers_count":9,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-14T01:54:15.322Z","etag":null,"topics":["deep","dot","dot-path","dot-prop","fast","javascript","lodash","lodash-pick","nested-value","nodejs","object","object-path","path","pick","pick-deep","small"],"latest_commit_sha":null,"homepage":"","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/strikeentco.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-19T16:27:43.000Z","updated_at":"2023-12-05T06:28:14.000Z","dependencies_parsed_at":"2023-03-13T10:27:07.085Z","dependency_job_id":null,"html_url":"https://github.com/strikeentco/pick-deep","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strikeentco%2Fpick-deep","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strikeentco%2Fpick-deep/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strikeentco%2Fpick-deep/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strikeentco%2Fpick-deep/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/strikeentco","download_url":"https://codeload.github.com/strikeentco/pick-deep/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248809032,"owners_count":21164895,"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":["deep","dot","dot-path","dot-prop","fast","javascript","lodash","lodash-pick","nested-value","nodejs","object","object-path","path","pick","pick-deep","small"],"created_at":"2024-12-10T20:14:42.422Z","updated_at":"2025-04-14T01:54:40.637Z","avatar_url":"https://github.com/strikeentco.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"pick-deep [![License](https://img.shields.io/npm/l/pick-deep.svg)](https://github.com/strikeentco/pick-deep/blob/master/LICENSE)  [![npm](https://img.shields.io/npm/v/pick-deep.svg)](https://www.npmjs.com/package/pick-deep)\n==========\n[![Build Status](https://travis-ci.org/strikeentco/pick-deep.svg)](https://travis-ci.org/strikeentco/pick-deep)  [![node](https://img.shields.io/node/v/pick-deep.svg)](https://www.npmjs.com/package/pick-deep) [![Test Coverage](https://api.codeclimate.com/v1/badges/b30a2d27d1f5f1e5507a/test_coverage)](https://codeclimate.com/github/strikeentco/pick-deep/test_coverage) [![bitHound Score](https://www.bithound.io/github/strikeentco/pick-deep/badges/score.svg)](https://www.bithound.io/github/strikeentco/pick-deep)\n\nOne of the smallest (*28 sloc*) and most effective implementations of object properties deep picking.\n\n# Usage\n\n```sh\n$ npm install pick-deep --save\n```\n\n```javascript\nconst pick = require('pick-deep');\n\npick({ a: { b: ['c', 'd'], e: 'f' } }, 'a.b');\npick({ a: { b: ['c', 'd'], e: 'f' } }, ['a.b']);\npick({ a: { b: ['c', 'd'], e: 'f' } }, [['a', 'b']]);\n//=\u003e { a: { b: ['c', 'd'] } }\n\npick({ a: { b: ['c', 'd'], e: 'f' }, j: { k: 'l' }, q: { r: ['s', 't'], u: 'w' }}, [['a', 'b'], 'j', 'q.u']);\n//=\u003e { a: { b: ['c', 'd'] }, j: { k: 'l' }, q: { u: 'w' }}\n\npick({ a: { b: 'c' } }, 'a.b.c.d');\n//=\u003e {}\n\npick({ a: { b: 'c' } }, 'a:b', ':');\n//=\u003e { a: { b: 'c' } }\n```\n## API\n\n### pick(obj, paths, [separator])\n\n#### Params:\n* **obj** (*Object*) - Source object.\n* **paths** (*String|Array|Array of Arrays*) - String, array or array of arrays with paths.\n* **[separator]** (*String*) - `.` by default.\n\n## Related\n\n- [@strikeentco/get](https://github.com/strikeentco/get) - One of the smallest and most effective implementations of getting a nested value from an object.\n- [@strikeentco/set](https://github.com/strikeentco/set) - One of the smallest and most effective implementations of setting a nested value on an object.\n\n## License\n\nThe MIT License (MIT)\u003cbr/\u003e\nCopyright (c) 2018 Alexey Bystrov\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrikeentco%2Fpick-deep","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstrikeentco%2Fpick-deep","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrikeentco%2Fpick-deep/lists"}