{"id":17061940,"url":"https://github.com/brh55/find-undefinedness","last_synced_at":"2025-04-12T18:12:35.475Z","repository":{"id":57236349,"uuid":"80193610","full_name":"brh55/find-undefinedness","owner":"brh55","description":":x: Find keys containing undefined within an object with support for deeply nested objects","archived":false,"fork":false,"pushed_at":"2017-01-27T10:56:41.000Z","size":8,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T12:37:38.346Z","etag":null,"topics":["dotted-keys","nested-objects","node","undefined"],"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/brh55.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":"2017-01-27T09:02:20.000Z","updated_at":"2022-11-11T00:38:15.000Z","dependencies_parsed_at":"2022-08-23T16:20:16.870Z","dependency_job_id":null,"html_url":"https://github.com/brh55/find-undefinedness","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/brh55%2Ffind-undefinedness","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brh55%2Ffind-undefinedness/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brh55%2Ffind-undefinedness/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brh55%2Ffind-undefinedness/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brh55","download_url":"https://codeload.github.com/brh55/find-undefinedness/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248483413,"owners_count":21111443,"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":["dotted-keys","nested-objects","node","undefined"],"created_at":"2024-10-14T10:48:45.175Z","updated_at":"2025-04-12T18:12:35.453Z","avatar_url":"https://github.com/brh55.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# find-undefinedness [![Build Status](https://img.shields.io/travis/brh55/find-undefinedness.svg?style=flat-square)](https://travis-ci.org/brh55/find-undefinedness) [![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg?style=flat-square)](https://github.com/sindresorhus/xo)\n\u003e Return dotted keys containing `undefined` values within an object including nested objects\n\u003e\n\u003e **findUndefindness({}) =\u003e [ keys ]**\n\n## Install\n\n```\n$ npm install --save find-undefinedness\n```\n\n## Usage\n### Flat Objects\n```js\nconst findUndefinedness = require('find-undefinedness');\n\nconst config = {\n    token: undefined,\n    username: 'brh55',\n    emoji: undefined\n}\nfindUndefinedness(config);\n//=\u003e '[ 'token', 'emoji']\n```\n### Nested Objects\n\n```js\nconst findUndefinedness = require('find-undefinedness');\n\nconst user = {\n    name: undefined,\n    github: {\n        username: 'brh55',\n        repositories: {\n            personal: 43,\n            private: undefined\n        },\n        followers: {\n            username: 'rightlag',\n            repositories: {\n                personal: 20,\n                private: undefined\n            },\n            stars: 1\n        },\n        stars: 100\n    },\n    emoji: undefined\n}\nfindUndefinedness(user);\n//=\u003e [ 'name', 'github.repositories.private', 'github.followers.repositories.private', 'emoji' ]\n```\n\n## API\n\n### findUndefinedness(object)\n\n* Returns `\u003carray\u003e` of dot notation keys if `undefined` is found, *else* `null`.*\n\n#### object | [`\u003cobject\u003e`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Normal_objects_and_functions)\n\nObject in question containing keys with undefinedness\n\n## License\n\nMIT © [Brandon Him](https://github.com/brh55)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrh55%2Ffind-undefinedness","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrh55%2Ffind-undefinedness","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrh55%2Ffind-undefinedness/lists"}