{"id":16531387,"url":"https://github.com/marcbachmann/require-suggestion","last_synced_at":"2025-09-13T23:32:19.392Z","repository":{"id":57354357,"uuid":"53922656","full_name":"marcbachmann/require-suggestion","owner":"marcbachmann","description":"Monkey patches require to show suggestions for requires that throw an error","archived":false,"fork":false,"pushed_at":"2023-12-15T02:27:06.000Z","size":19,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-14T14:40:28.527Z","etag":null,"topics":[],"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/marcbachmann.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-03-15T07:09:08.000Z","updated_at":"2021-12-30T13:11:39.000Z","dependencies_parsed_at":"2023-12-15T03:30:45.972Z","dependency_job_id":"dcbe3891-ca2e-4bc6-aad6-8a619a3048b6","html_url":"https://github.com/marcbachmann/require-suggestion","commit_stats":{"total_commits":13,"total_committers":2,"mean_commits":6.5,"dds":0.07692307692307687,"last_synced_commit":"3856cccdd94ae6b035314e8d31bacc1ae44d3ffd"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcbachmann%2Frequire-suggestion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcbachmann%2Frequire-suggestion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcbachmann%2Frequire-suggestion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcbachmann%2Frequire-suggestion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcbachmann","download_url":"https://codeload.github.com/marcbachmann/require-suggestion/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232931899,"owners_count":18598665,"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":[],"created_at":"2024-10-11T18:08:42.211Z","updated_at":"2025-01-07T20:08:54.434Z","avatar_url":"https://github.com/marcbachmann.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# require-suggestion\n\nMonkey patches require to show suggestions for requires that throw an error\n\n\n## Usage\n\n```javascript\nrequire('require-suggestion/register')\n\nrequire('./pakage.json')\n```\n\nthrows that error instead of the default one\n\n```bash\nError: Cannot find module './pakage.json'\n\nRequire suggestions:\n- ./package.json\n- ./package-lock.json\n- ./index.js\n- ./register.js\n\nRequire stack:\n- /app/require-suggestion/test.js\n    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)\n    at Function.wrappedResolveFilename [as _resolveFilename] (/app/require-suggestion/index.js:60:30)\n    at Function.Module._load (node:internal/modules/cjs/loader:778:27)\n    at Module.require (node:internal/modules/cjs/loader:1005:19)\n    at require (node:internal/modules/cjs/helpers:102:18)\n    at Object.\u003canonymous\u003e (/app/require-suggestion/test.js:7:3)\n    at Module._compile (node:internal/modules/cjs/loader:1101:14)\n    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)\n    at Module.load (node:internal/modules/cjs/loader:981:32)\n    at Function.Module._load (node:internal/modules/cjs/loader:822:12)\n    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)\n    at node:internal/main/run_main_module:17:47\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcbachmann%2Frequire-suggestion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcbachmann%2Frequire-suggestion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcbachmann%2Frequire-suggestion/lists"}