{"id":15758027,"url":"https://github.com/zkochan/deep-resolve-cwd","last_synced_at":"2025-11-12T22:18:35.405Z","repository":{"id":66017697,"uuid":"90663744","full_name":"zkochan/deep-resolve-cwd","owner":"zkochan","description":"Resolve the path of a module through a sequence of packages from the current working directory","archived":false,"fork":false,"pushed_at":"2017-05-08T19:51:12.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-14T08:47:00.849Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zkochan.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":"2017-05-08T19:14:26.000Z","updated_at":"2017-05-08T19:25:47.000Z","dependencies_parsed_at":"2023-03-10T23:29:06.278Z","dependency_job_id":null,"html_url":"https://github.com/zkochan/deep-resolve-cwd","commit_stats":{"total_commits":4,"total_committers":2,"mean_commits":2.0,"dds":0.5,"last_synced_commit":"c24eb723f3c259c8568e9c8dd5104273739b89db"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/zkochan/deep-resolve-cwd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkochan%2Fdeep-resolve-cwd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkochan%2Fdeep-resolve-cwd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkochan%2Fdeep-resolve-cwd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkochan%2Fdeep-resolve-cwd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zkochan","download_url":"https://codeload.github.com/zkochan/deep-resolve-cwd/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkochan%2Fdeep-resolve-cwd/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":284119421,"owners_count":26950612,"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-11-12T02:00:06.336Z","response_time":59,"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-04T09:41:49.199Z","updated_at":"2025-11-12T22:18:35.385Z","avatar_url":"https://github.com/zkochan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# deep-resolve-cwd\n\n\u003e Resolve the path of a module through a sequence of packages from the current working directory\n\n\u003c!--@shields('npm', 'travis')--\u003e\n[![npm version](https://img.shields.io/npm/v/deep-resolve-cwd.svg)](https://www.npmjs.com/package/deep-resolve-cwd) [![Build Status](https://img.shields.io/travis/zkochan/deep-resolve-cwd/master.svg)](https://travis-ci.org/zkochan/deep-resolve-cwd)\n\u003c!--/@--\u003e\n\n## Installation\n\n```sh\nnpm i -S deep-resolve-cwd\n```\n\n## Usage\n\n```js\nconst deepResolveCwd = require('deep-resolve-cwd')\n\nconsole.log(deepResolveCwd(['mos', 'chalk', './package.json']))\n//\u003e /home/zkochan/src/deep-resolve-from/node_modules/.registry.npmjs.org/chalk/1.1.3/node_modules/chalk/package.json\n```\n\n## API\n\n### `deepResolveCwd(moduleIds)`\n\nLike `require()`, throws when the module can't be found.\n\n### `deepResolveCwd.silent(moduleIds)`\n\nReturns `null` instead of throwing when the module can't be found.\n\n#### moduleIds\n\nType: `string[]`\n\nAn array of module IDs, a module ID is something that you pass to `require()`.\n\n## Related\n\n- [deep-resolve-from](https://github.com/zkochan/deep-resolve-from) - Resolve the path of a module through a sequence of packages\n- [resolve-cwd](https://github.com/sindresorhus/resolve-cwd) - Resolve the path of a module like `require.resolve()` but from the current working directory\n\n## License\n\n[MIT](./LICENSE) © [Zoltan Kochan](https://www.kochan.io)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzkochan%2Fdeep-resolve-cwd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzkochan%2Fdeep-resolve-cwd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzkochan%2Fdeep-resolve-cwd/lists"}