{"id":15734667,"url":"https://github.com/eemeli/resolve-chrome-uri","last_synced_at":"2025-03-31T03:45:34.657Z","repository":{"id":66017900,"uuid":"404696435","full_name":"eemeli/resolve-chrome-uri","owner":"eemeli","description":null,"archived":false,"fork":false,"pushed_at":"2021-11-26T13:20:48.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-28T16:49:08.874Z","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/eemeli.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},"funding":{"github":"eemeli","tidelift":"npm/yaml"}},"created_at":"2021-09-09T11:30:25.000Z","updated_at":"2021-11-26T13:20:51.000Z","dependencies_parsed_at":"2023-03-10T23:29:09.593Z","dependency_job_id":null,"html_url":"https://github.com/eemeli/resolve-chrome-uri","commit_stats":{"total_commits":8,"total_committers":1,"mean_commits":8.0,"dds":0.0,"last_synced_commit":"114017cd0d28f3df273d510e9eb7a6cac4f3434e"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eemeli%2Fresolve-chrome-uri","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eemeli%2Fresolve-chrome-uri/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eemeli%2Fresolve-chrome-uri/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eemeli%2Fresolve-chrome-uri/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eemeli","download_url":"https://codeload.github.com/eemeli/resolve-chrome-uri/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246413242,"owners_count":20773053,"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-04T01:01:14.822Z","updated_at":"2025-03-31T03:45:34.640Z","avatar_url":"https://github.com/eemeli.png","language":"JavaScript","funding_links":["https://github.com/sponsors/eemeli","https://tidelift.com/funding/github/npm/yaml"],"categories":[],"sub_categories":[],"readme":"# resolve-chrome-uri\n\nA really hacky utility for resolving `chrome://` URIs into file paths under mozilla-central.\nInternally, parses `%` lines from `jar.mn` files and then looks around.\nFalls back to matching file names.\nResults are cached to disk, as this is a bit slow.\nSupports only `content` and `locale` URIs.\n\nTo use as a library:\n\n```js\nimport { clearCache, resolveChromeUri } from 'resolve-chrome-uri'\n\nconst root = 'path/to/mozilla-central'\nconst uri = 'chrome://mozapps/content/update/history.xhtml'\nconst res = await resolveChromeUri(root, uri)\n\n\u003e Set(1) {\n    '/absolute/path/to/mozilla-central/toolkit/mozapps/update/content/history.xhtml'\n  }\n```\n\nProvides a CLI which uses the current directory as the root and takes the URI\nas a single argument:\n\n```sh\n$ npx resolve-chrome-uri chrome://mozapps/content/update/history.xhtml\ntoolkit/mozapps/update/content/history.xhtml\n```\n\nTo clear the cache, use `-c` or `--clear` as the argument.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feemeli%2Fresolve-chrome-uri","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feemeli%2Fresolve-chrome-uri","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feemeli%2Fresolve-chrome-uri/lists"}