{"id":28358425,"url":"https://github.com/montumodi/falsy-finder","last_synced_at":"2026-05-18T04:36:30.849Z","repository":{"id":57232629,"uuid":"134006560","full_name":"montumodi/falsy-finder","owner":"montumodi","description":"A simple utility to find out falsy values from an object or arrays.","archived":false,"fork":false,"pushed_at":"2021-05-10T09:19:55.000Z","size":553,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-04T13:54:28.418Z","etag":null,"topics":["array","falsy","finder","json","null","object","truthy","undefined"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/montumodi.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-18T21:37:57.000Z","updated_at":"2021-05-10T09:19:57.000Z","dependencies_parsed_at":"2022-08-31T20:51:07.090Z","dependency_job_id":null,"html_url":"https://github.com/montumodi/falsy-finder","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/montumodi/falsy-finder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/montumodi%2Ffalsy-finder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/montumodi%2Ffalsy-finder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/montumodi%2Ffalsy-finder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/montumodi%2Ffalsy-finder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/montumodi","download_url":"https://codeload.github.com/montumodi/falsy-finder/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/montumodi%2Ffalsy-finder/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261293530,"owners_count":23136792,"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":["array","falsy","finder","json","null","object","truthy","undefined"],"created_at":"2025-05-28T08:15:22.569Z","updated_at":"2025-09-25T14:25:09.027Z","avatar_url":"https://github.com/montumodi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Falsy Finder\n\n[![Known Vulnerabilities](https://snyk.io/test/github/montumodi/falsy-finder/badge.svg)](https://snyk.io/test/github/montumodi/falsy-finder)\n[![Coverage Status](https://coveralls.io/repos/github/montumodi/falsy-finder/badge.svg?branch=master)](https://coveralls.io/github/montumodi/falsy-finder?branch=master)\n[![Build Status](https://travis-ci.org/montumodi/falsy-finder.svg?branch=master)](https://travis-ci.org/montumodi/falsy-finder)\n[![Deps](https://david-dm.org/montumodi/falsy-finder.svg)](https://david-dm.org/montumodi/falsy-finder#info=dependencies)\n[![devDependency Status](https://david-dm.org/montumodi/falsy-finder/dev-status.svg)](https://david-dm.org/montumodi/falsy-finder#info=devDependencies)\n\n[![NPM](https://nodei.co/npm/falsy-finder.png?downloads=true)](https://www.npmjs.com/package/falsy-finder/)\n\nA simple utility to find out falsy values from an object or arrays. It returns all the keys along with values in an array. By default it will look for following falsy values:\n\n```\n\"\",\nnull,\nundefined,\nNaN\n```\n\nThis behavior can be customized by passing options while creating finder. See [options](#options)\n\n## How to install\n\n```\nnpm install falsy-finder -S\n```\n\n## Getting Started\n\nThe basic syntax is:\n\n```js\nconst createFinder = require(\"falsy-finder\");\n\nconst finder = createFinder();\n\nconst someJsonWithNullValues = {\n  firstName: \"firstName\",\n  lastName: \"lastName\",\n  address: {\n    City: \"\",\n    Street: \"London\"\n  },\n  tags: [\n    \"Hi\",\n    \"hello\",\n    \"\",\n    null,\n    [\n      {\n        nested: null,\n        none: \"vallue\"\n      }\n    ]\n  ]\n};\nconst result = finder.getFalsyValues(someJsonWithNullValues);\n\nResult: [\n  {\n    key: \"address.City\",\n    value: \"\"\n  },\n  {\n    key: \"tags.[2]\",\n    value: \"\"\n  },\n  {\n    key: \"tags.[3]\",\n    value: null\n  },\n  {\n    key: \"tags.[4].[0].nested\",\n    value: null\n  }\n];\n```\n\nThs syntax using options:\n\n```js\nconst createFinder = require(\"falsy-finder\");\nconst options = { falsyValues: [\"my\", \"custom\", null, \"and\", undefined] };\n\nconst finder = createFinder(options);\n```\n\n### Options\n\nThe `getFinder` method supports following options:\n\n* `falsyValues`: (array) The custom falsy values array to check against. - default: `[\"\", null, undefined, NaN]`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmontumodi%2Ffalsy-finder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmontumodi%2Ffalsy-finder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmontumodi%2Ffalsy-finder/lists"}