{"id":15671078,"url":"https://github.com/dsherret/deno-which","last_synced_at":"2025-12-11T21:12:48.925Z","repository":{"id":44418447,"uuid":"444888546","full_name":"dsherret/deno-which","owner":"dsherret","description":"Finds the path to the specified command in Deno.","archived":false,"fork":false,"pushed_at":"2024-05-04T17:47:52.000Z","size":14,"stargazers_count":16,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-05T20:09:52.054Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/dsherret.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":"2022-01-05T17:16:27.000Z","updated_at":"2024-12-21T00:34:50.000Z","dependencies_parsed_at":"2024-10-23T10:27:39.782Z","dependency_job_id":"802b4afd-f87f-400c-8d63-a714f10385e2","html_url":"https://github.com/dsherret/deno-which","commit_stats":{"total_commits":18,"total_committers":4,"mean_commits":4.5,"dds":0.2777777777777778,"last_synced_commit":"dd5239be39174238b66d1d031356b6729aa3276a"},"previous_names":["dsherret/deno-which","dsherret/deno_which"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/dsherret/deno-which","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsherret%2Fdeno-which","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsherret%2Fdeno-which/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsherret%2Fdeno-which/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsherret%2Fdeno-which/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dsherret","download_url":"https://codeload.github.com/dsherret/deno-which/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsherret%2Fdeno-which/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269653717,"owners_count":24454316,"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","status":"online","status_checked_at":"2025-08-09T02:00:10.424Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-10-03T15:01:36.876Z","updated_at":"2025-12-11T21:12:43.881Z","avatar_url":"https://github.com/dsherret.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# deno-which\n\n[![deno doc](https://jsr.io/badges/@david/which)](https://jsr.io/@david/which)\n\nFinds the path to the specified command.\n\n```sh\n\u003e deno add @david/which\n```\n\n```ts\nimport { which, whichSync } from \"@david/which\";\n\nconst pathToCurl = await which(\"curl\");\n```\n\n## Custom Environment\n\nIf you want to use this with an fake or in memory environment, then you can\nprovide a custom environment as the second parameter.\n\nFor example:\n\n```ts\nconst pathToCurl = await which(\"curl\", {\n  os: \"windows\",\n  async fileExists(filePath: string) {\n    // implement this\n  },\n  env(key: string) {\n    // implement getting an environment variable\n  },\n  // optional method for requesting broader permissions for a folder\n  requestPermission(folderPath: string): void {\n    Deno.permissions.requestSync({\n      name: \"read\",\n      path: folderPath,\n    });\n  },\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdsherret%2Fdeno-which","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdsherret%2Fdeno-which","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdsherret%2Fdeno-which/lists"}