{"id":16347723,"url":"https://github.com/privatenumber/bfs","last_synced_at":"2025-03-23T00:32:56.421Z","repository":{"id":62354739,"uuid":"314414902","full_name":"privatenumber/bfs","owner":"privatenumber","description":"Find the path of a value in a complex JavaScript object graph/tree.","archived":false,"fork":false,"pushed_at":"2020-12-28T22:17:55.000Z","size":223,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-03-18T15:55:08.547Z","etag":null,"topics":["bfs","breadth-first-search","debugging","search"],"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/privatenumber.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":"2020-11-20T01:33:53.000Z","updated_at":"2024-09-21T17:26:41.000Z","dependencies_parsed_at":"2022-10-31T10:46:08.517Z","dependency_job_id":null,"html_url":"https://github.com/privatenumber/bfs","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/privatenumber%2Fbfs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/privatenumber%2Fbfs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/privatenumber%2Fbfs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/privatenumber%2Fbfs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/privatenumber","download_url":"https://codeload.github.com/privatenumber/bfs/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245040235,"owners_count":20551297,"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":["bfs","breadth-first-search","debugging","search"],"created_at":"2024-10-11T00:45:18.703Z","updated_at":"2025-03-23T00:32:56.096Z","avatar_url":"https://github.com/privatenumber.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bfs [![Latest version](https://badgen.net/npm/v/bfs)](https://npm.im/bfs) [![Monthly downloads](https://badgen.net/npm/dm/bfs)](https://npm.im/bfs) [![Install size](https://packagephobia.now.sh/badge?p=bfs)](https://packagephobia.now.sh/result?p=bfs) [![Bundle size](https://badgen.net/bundlephobia/minzip/bfs)](https://bundlephobia.com/result?p=bfs)\n\nFind the path of a value in a complex JavaScript object graph/tree.\n\nThis module is BFS ([Breadth-first Search](https://en.wikipedia.org/wiki/Breadth-first_search)) as a debugging tool to help with quickly understanding the relationships within an object tree/graph.\n\n\u003csub\u003eIf you like this project, please star it \u0026 [follow me](https://github.com/privatenumber) to see what other cool projects I'm working on! ❤️\u003c/sub\u003e\n\n## 🚦 Quick Setup\n\n### In a local project\n\n```sh\nnpm i --no-save bfs\n```\n\n```js\nimport BFS from 'bfs';\n\n// Search the global scope for all properties that have the MAX_SAFE_INTEGER value\nBFS(global, Number.MAX_SAFE_INTEGER);\n```\n\n### In browser dev-tools\n\n```js\nconst { default: BFS } = await import('//unpkg.com/bfs/dist/bfs.esm.js');\n\n// Search the global scope for all properties that have the MAX_SAFE_INTEGER value\nBFS(global, Math.max);\n```\n\n### In non ESM environments\n```js\n(function (cb) {\n    var s = document.createElement('script')\n    s.src = '//unpkg.com/bfs'\n    s.onload = cb\n    document.head.appendChild(s)\n})(function () {\n\n\t// Search the global scope for all properties that have the MAX_SAFE_INTEGER value\n    BFS(global, Number.MAX_SAFE_INTEGER);\n})\n```\n\n## ⚙️ Options\n- timeout (`10000`)\n- maxFinds (`100`)\n- silenceErrors (`true`)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprivatenumber%2Fbfs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprivatenumber%2Fbfs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprivatenumber%2Fbfs/lists"}