{"id":16939291,"url":"https://github.com/a8m/deep-keys","last_synced_at":"2025-07-12T09:36:55.630Z","repository":{"id":21828468,"uuid":"25151466","full_name":"a8m/deep-keys","owner":"a8m","description":"Create an array composed of the own enumerable property names (including nested) of an object.","archived":false,"fork":false,"pushed_at":"2017-12-04T18:35:42.000Z","size":14,"stargazers_count":22,"open_issues_count":2,"forks_count":7,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-12T18:48:33.551Z","etag":null,"topics":["deep-keys","javascript","js","nested-keys","nested-properties"],"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/a8m.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":"2014-10-13T09:09:27.000Z","updated_at":"2025-02-28T22:39:07.000Z","dependencies_parsed_at":"2022-08-17T20:45:18.579Z","dependency_job_id":null,"html_url":"https://github.com/a8m/deep-keys","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a8m%2Fdeep-keys","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a8m%2Fdeep-keys/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a8m%2Fdeep-keys/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a8m%2Fdeep-keys/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/a8m","download_url":"https://codeload.github.com/a8m/deep-keys/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243852425,"owners_count":20358270,"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-keys","javascript","js","nested-keys","nested-properties"],"created_at":"2024-10-13T21:04:15.125Z","updated_at":"2025-03-17T08:36:47.464Z","avatar_url":"https://github.com/a8m.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# deep-keys \n[![NPM version][npm-image]][npm-url]\n[![Build status][travis-image]][travis-url]\n[![Test coverage][coveralls-image]][coveralls-url]\n[![Dependency Status][david-image]][david-url]\n[![License][license-image]][license-url]\n[![Downloads][downloads-image]][downloads-url]\n\n\u003e Creates an array composed of the own enumerable property names(including nested) of an object.\n\n**Note:** This kit works great with [obj-parse](https://github.com/a8m/obj-parse) _(get and set object properties in a fast and elegant way)._\n\n## Install\n\n```sh\n$ npm install --save deep-keys\n```\n\n## Usage\n##### `deepKeys(obj, intermediate[optional])`\n```js\nvar deepKeys = require('deep-keys');\n\nvar obj1 = {\n  a: 1,\n  b: { c: 1 },\n  c: { d: { e: 1 }, f: 1 },\n  d: { e: { f: { g: 1, h: 2 } } },\n  e: 2,\n  f: { g: [] }\n};\ndeepKeys(obj1);\n//=\u003e ['a', 'b.c', 'c.d.e', 'c.f', 'd.e.f.g', 'd.e.f.h', 'e', 'f.g']\n\nvar obj2 = {\n  type: 'customer',\n  details: {\n    name: 'Ariel', age: 26, address: { city: 'Tel Aviv', country: 'Israel' }\n  },\n  isActive: true\n};\ndeepKeys(obj2);\n//=\u003e ['type', 'details.name', 'details.age', 'details.address.city', 'details.address.country', 'isActive']\n\n// intermediate example\nvar obj3 = {a:{b:{c:1}}};\ndeepKeys(obj3);       //=\u003e [ 'a.b.c' ]\ndeepKeys(obj3, true); //=\u003e [ 'a', 'a.b', 'a.b.c' ]\n\n// Dots in key names get escaped\nvar obj4 = { 'a.': { b: 1} };\ndeepKeys(obj4) //=\u003e [ 'a\\\\..b' ]\n```\n\n\n## License\n\nMIT © [Ariel Mashraki](https://github.com/a8m)\n\n[npm-image]: https://img.shields.io/npm/v/deep-keys.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/deep-keys\n[travis-image]: https://img.shields.io/travis/a8m/deep-keys.svg?style=flat-square\n[travis-url]: https://travis-ci.org/a8m/deep-keys\n[coveralls-image]: https://img.shields.io/coveralls/a8m/deep-keys.svg?style=flat-square\n[coveralls-url]: https://coveralls.io/r/a8m/deep-keys\n[david-image]: http://img.shields.io/david/a8m/deep-keys.svg?style=flat-square\n[david-url]: https://david-dm.org/a8m/deep-keys\n[license-image]: http://img.shields.io/npm/l/deep-keys.svg?style=flat-square\n[license-url]: LICENSE\n[downloads-image]: http://img.shields.io/npm/dm/deep-keys.svg?style=flat-square\n[downloads-url]: https://npmjs.org/package/deep-keys\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa8m%2Fdeep-keys","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fa8m%2Fdeep-keys","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa8m%2Fdeep-keys/lists"}