{"id":15506199,"url":"https://github.com/sooniter/alias-register","last_synced_at":"2026-04-26T08:34:32.726Z","repository":{"id":227607700,"uuid":"771910206","full_name":"SoonIter/alias-register","owner":"SoonIter","description":"set `resolve.alias` for node.js runtime","archived":false,"fork":false,"pushed_at":"2024-03-14T08:13:36.000Z","size":92,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-12T10:57:31.262Z","etag":null,"topics":["nodejs","register","resolve"],"latest_commit_sha":null,"homepage":"","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/SoonIter.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}},"created_at":"2024-03-14T07:15:30.000Z","updated_at":"2024-03-14T07:34:06.000Z","dependencies_parsed_at":"2024-03-14T08:32:53.424Z","dependency_job_id":"3e58df31-7d1b-4b44-ba0e-d4845cfb4c9b","html_url":"https://github.com/SoonIter/alias-register","commit_stats":null,"previous_names":["sooniter/alias-register"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SoonIter/alias-register","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SoonIter%2Falias-register","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SoonIter%2Falias-register/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SoonIter%2Falias-register/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SoonIter%2Falias-register/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SoonIter","download_url":"https://codeload.github.com/SoonIter/alias-register/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SoonIter%2Falias-register/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32290749,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T08:29:33.829Z","status":"ssl_error","status_checked_at":"2026-04-26T08:29:18.366Z","response_time":129,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["nodejs","register","resolve"],"created_at":"2024-10-02T09:26:11.581Z","updated_at":"2026-04-26T08:34:32.690Z","avatar_url":"https://github.com/SoonIter.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# alias-register\n\n\u003ca href=\"https://www.npmjs.com/package/alias-register\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/alias-register.svg?sanitize=true\" alt=\"Version\"\u003e\u003c/a\u003e\n\n## Get Started\n\nsay bye to webpack multi-instances ~\n\n```js\n// alias.config.cjs\nconst path = require('path');\n\nconst config = {\n  resolve: {\n    alias: {\n      lib: path.join(__dirname, 'lib'),\n    },\n  },\n};\n\nmodule.exports = config;\n```\n\n```sh\nnode --loader alias-register ./main.js\n# or\nNODE_OPTIONS=\"--loader alias-register\" node ./main.js\n\n# if Node.js v20.6.0 and above\nnode --import alias-register ./main.js\nNODE_OPTIONS=\"--import alias-register\" node ./main.js\n```\n\n### Other Usages\n\n#### ESM only loader\n\nIf you only need to add TypeScript support in a Module context, you can use the ESM loader:\n\n##### Node.js v20.6.0 and above\n\n```sh\nnode --import alias-register/esm ./main.js\n```\n\n##### Node.js v20.5.1 and below\n\n```sh\nnode --loader alias-register/esm ./main.js\n```\n\n#### CommonJS only loader\n\nIf you only need to add TypeScript \u0026 ESM support in a CommonJS context, you can use the CJS loader:\n\n```sh\nnode --require alias-register/cjs ./main.js\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsooniter%2Falias-register","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsooniter%2Falias-register","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsooniter%2Falias-register/lists"}