{"id":20438305,"url":"https://github.com/seebigs/seebigs-resolve","last_synced_at":"2026-04-19T00:03:13.864Z","repository":{"id":75737150,"uuid":"67798534","full_name":"seebigs/seebigs-resolve","owner":"seebigs","description":null,"archived":false,"fork":false,"pushed_at":"2018-10-31T21:38:08.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-16T02:34:03.894Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/seebigs.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-09-09T12:50:53.000Z","updated_at":"2018-10-31T21:38:09.000Z","dependencies_parsed_at":"2023-03-24T22:49:34.754Z","dependency_job_id":null,"html_url":"https://github.com/seebigs/seebigs-resolve","commit_stats":{"total_commits":26,"total_committers":2,"mean_commits":13.0,"dds":"0.038461538461538436","last_synced_commit":"4a7ce6f72ce3ef52fe3d384432e01e8cee6d002b"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seebigs%2Fseebigs-resolve","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seebigs%2Fseebigs-resolve/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seebigs%2Fseebigs-resolve/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seebigs%2Fseebigs-resolve/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seebigs","download_url":"https://codeload.github.com/seebigs/seebigs-resolve/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241983597,"owners_count":20052711,"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-11-15T09:10:20.741Z","updated_at":"2026-04-19T00:03:13.810Z","avatar_url":"https://github.com/seebigs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# seebigs-resolve\n\nResolve a target string to a single filepath and get the contents of the file at that location\n\n*Follows Node spec: [https://nodejs.org/api/modules.html](https://nodejs.org/api/modules.html)*\n\n## Install\n\n```\n$ npm install seebigs-resolve\n```\n\n## Resolve\n\n```js\nvar resolve = require('seebigs-resolve');\nvar fromFile = __filename;\n\nresolve('/abs/module.js', fromFile);\nresolve('../rel/module.js', fromFile);\nresolve('npm_module', fromFile);\n\n// returns { contents: '...', path: '/path/to/module.js' }\n```\n\n## Paths\n\nModules can also be resolved from an optional array of paths\n\n```js\nvar resolve = require('seebigs-resolve');\nvar fromFile = __filename;\nvar paths = [\n    '../one'\n];\n\nresolve('module.js', fromFile, paths);\n```\n\n## Browser Field\n\nForce resolve to use the browser field in package.json\n\n```js\nvar resolve = require('seebigs-resolve');\nvar fromFile = __filename;\n\nresolve.browser('module.js', fromFile);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseebigs%2Fseebigs-resolve","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseebigs%2Fseebigs-resolve","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseebigs%2Fseebigs-resolve/lists"}