{"id":14886182,"url":"https://github.com/node-loader/node-loader-import-maps","last_synced_at":"2025-07-04T16:05:29.779Z","repository":{"id":46066619,"uuid":"255464179","full_name":"node-loader/node-loader-import-maps","owner":"node-loader","description":"A nodejs loader for import maps","archived":false,"fork":false,"pushed_at":"2023-08-03T06:14:22.000Z","size":177,"stargazers_count":57,"open_issues_count":6,"forks_count":4,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-02-02T23:47:28.636Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/node-loader.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":"2020-04-13T23:34:10.000Z","updated_at":"2024-09-18T08:20:24.000Z","dependencies_parsed_at":"2024-06-18T16:45:51.845Z","dependency_job_id":"32dc0c26-c7ab-492a-aab3-c9d45a8dc729","html_url":"https://github.com/node-loader/node-loader-import-maps","commit_stats":{"total_commits":33,"total_committers":3,"mean_commits":11.0,"dds":"0.12121212121212122","last_synced_commit":"4d689784cd7b5ffa4282040d09e159b45e392d2e"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-loader%2Fnode-loader-import-maps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-loader%2Fnode-loader-import-maps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-loader%2Fnode-loader-import-maps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-loader%2Fnode-loader-import-maps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/node-loader","download_url":"https://codeload.github.com/node-loader/node-loader-import-maps/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239394691,"owners_count":19631117,"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-09-21T17:01:01.873Z","updated_at":"2025-02-18T01:38:13.584Z","avatar_url":"https://github.com/node-loader.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# @node-loader/import-maps\n\nA [nodejs loader](https://nodejs.org/dist/latest-v13.x/docs/api/esm.html#esm_experimental_loaders) for [import maps](https://github.com/WICG/import-maps). This allows you to customize module resolution by creating a `node.importmap` file.\n\n## Installation\n\n```sh\nnpm install --save @node-loader/import-maps\n\n# Or, if you prefer Yarn\nyarn add --save @node-loader/import-maps\n```\n\n## Usage\n\nCreate a file `node.importmap` in the current working directory:\n\n```json\n{\n  \"imports\": {\n    \"my-module\": \"file:///Users/name/code/my-module.js\"\n  }\n}\n```\n\nNow create a file that imports the mapped module:\n\n```js\nimport \"my-module\";\n```\n\nNow run node with the `--experimental-loader` flag:\n\n```sh\nnode --experimental-loader @node-loader/import-maps file.js\n```\n\n## Configuration\n\nBy default, node-loader import maps looks for a configuration file called `node.importmap` in the current working directory. To specify the file path to the configuration file, provide the `IMPORT_MAP_PATH` environment variable:\n\n```sh\nIMPORT_MAP_PATH=/Users/name/some/dir/node.importmap node --experimental-loader @node-loader/import-maps file.js\n```\n\n## Composition\n\nIf you wish to combine import maps with other NodeJS loaders, you may do so by using [node-loader-core](https://github.com/node-loader/node-loader-core).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnode-loader%2Fnode-loader-import-maps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnode-loader%2Fnode-loader-import-maps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnode-loader%2Fnode-loader-import-maps/lists"}