{"id":15393076,"url":"https://github.com/shgysk8zer0/importmap","last_synced_at":"2026-06-11T23:00:51.746Z","repository":{"id":171170718,"uuid":"647540862","full_name":"shgysk8zer0/importmap","owner":"shgysk8zer0","description":"Front-End dependencies based on `\u003cscript type=\"importmap\"\u003e`","archived":false,"fork":false,"pushed_at":"2026-06-04T02:50:52.000Z","size":1227,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-06-04T04:23:20.121Z","etag":null,"topics":["importmap","node","npm","rollup"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@shgysk8zer0/importmap","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/shgysk8zer0.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"shgysk8zer0","liberapay":"shgysk8zer0"}},"created_at":"2023-05-31T02:18:19.000Z","updated_at":"2026-06-04T02:50:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"b367a941-99d8-4837-83ba-a3f67a69bafb","html_url":"https://github.com/shgysk8zer0/importmap","commit_stats":null,"previous_names":["shgysk8zer0/importmap"],"tags_count":184,"template":false,"template_full_name":null,"purl":"pkg:github/shgysk8zer0/importmap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shgysk8zer0%2Fimportmap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shgysk8zer0%2Fimportmap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shgysk8zer0%2Fimportmap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shgysk8zer0%2Fimportmap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shgysk8zer0","download_url":"https://codeload.github.com/shgysk8zer0/importmap/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shgysk8zer0%2Fimportmap/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34221150,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-11T02:00:06.485Z","response_time":57,"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":["importmap","node","npm","rollup"],"created_at":"2024-10-01T15:17:44.245Z","updated_at":"2026-06-11T23:00:51.728Z","avatar_url":"https://github.com/shgysk8zer0.png","language":"JavaScript","funding_links":["https://github.com/sponsors/shgysk8zer0","https://liberapay.com/shgysk8zer0","https://liberapay.com/shgysk8zer0/donate"],"categories":[],"sub_categories":[],"readme":"# @shgysk8zer0/importmap\nFront-End dependencies based on [`\u003cscript type=\"importmap\"\u003e`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script/type/importmap)\n\nIntended for use with [`rollup`](https://rollupjs.org/) and [`@shgysk8zer0/rollup-import`](https://www.npmjs.com/package/@shgysk8zer0/rollup-import).\n\n- - -\n[![CodeQL](https://github.com/shgysk8zer0/importmap/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/shgysk8zer0/importmap/actions/workflows/codeql-analysis.yml)\n![Node CI](https://github.com/shgysk8zer0/importmap/workflows/Node%20CI/badge.svg)\n![Lint Code Base](https://github.com/shgysk8zer0/importmap/workflows/Lint%20Code%20Base/badge.svg)\n\n[![GitHub license](https://img.shields.io/github/license/shgysk8zer0/importmap.svg)](https://github.com/shgysk8zer0/importmap/blob/master/LICENSE)\n[![GitHub last commit](https://img.shields.io/github/last-commit/shgysk8zer0/importmap.svg)](https://github.com/shgysk8zer0/importmap/commits/master)\n[![GitHub release](https://img.shields.io/github/release/shgysk8zer0/importmap?logo=github)](https://github.com/shgysk8zer0/importmap/releases)\n[![GitHub Sponsors](https://img.shields.io/github/sponsors/shgysk8zer0?logo=github)](https://github.com/sponsors/shgysk8zer0)\n\n[![npm](https://img.shields.io/npm/v/@shgysk8zer0/importmap)](https://www.npmjs.com/package/@shgysk8zer0/importmap)\n![node-current](https://img.shields.io/node/v/@shgysk8zer0/importmap)\n![npm bundle size gzipped](https://img.shields.io/bundlephobia/minzip/@shgysk8zer0/importmap)\n[![npm](https://img.shields.io/npm/dw/@shgysk8zer0/importmap?logo=npm)](https://www.npmjs.com/package/@shgysk8zer0/importmap)\n\n[![GitHub followers](https://img.shields.io/github/followers/shgysk8zer0.svg?style=social)](https://github.com/shgysk8zer0)\n![GitHub forks](https://img.shields.io/github/forks/shgysk8zer0/importmap.svg?style=social)\n![GitHub stars](https://img.shields.io/github/stars/shgysk8zer0/importmap.svg?style=social)\n[![Twitter Follow](https://img.shields.io/twitter/follow/shgysk8zer0.svg?style=social)](https://twitter.com/shgysk8zer0)\n\n[![Donate using Liberapay](https://img.shields.io/liberapay/receives/shgysk8zer0.svg?logo=liberapay)](https://liberapay.com/shgysk8zer0/donate \"Donate using Liberapay\")\n- - -\n\n- [Code of Conduct](./.github/CODE_OF_CONDUCT.md)\n- [Contributing](./.github/CONTRIBUTING.md)\n\u003c!-- - [Security Policy](./.github/SECURITY.md) --\u003e\n\n## Installation\n\n```bash\nnpm i @shgysk8zer0/importmap\n```\n\n## Example\n\n```js\n// rollup.config.js\nimport { rollupImport } from '@shgysk8zer0/rollup-import';\nimport { imports } from '@shgysk8zer0/importmap';\n\nexport default {\n\tinput: 'index.js',\n\toutput: {\n\t\tfile: 'index.min.js',\n\t\tformat: 'iife',\n\t\tsourcemap: true,\n\t},\n\tplugins: [rollupImport({ imports })],\n};\n```\n\n## For `\u003cscript type=\"importmap\"\u003e`\n\nThe module exports `getImportMapScript()`, which can be used to generate the\nrequired importmap `\u003cscript\u003e`:\n\n```js\nimport { getImportMapScript } from '@shgysk8zer0/importmap';\n\ngetImportMapScript();\n```\n\nWhich results in:\n\n```html\n\u003cscript type=\"importmap\" integrity=\"sha384-...\"\u003e{\"imports\": {}, \"scope\": {}}\u003c/script\u003e\n```\n\n## CLI\n\n\n### `importmap-utils`\n\nCreate / update local importmap JSON or YAML files.\n\n```\nUsage: importmap-utils [options]\n\nCLI utility for updating importmap files\n\nOptions:\n  -V, --version              output the version number\n  -i, --input [input]        local JSON or YAML importmap file\n  -e, --encoding [encoding]  encoding (default: \"utf8\")\n  -f, --format [format]      output format\n  -o, --output \u003coutput\u003e      output file\n  -h, --help                 display help for command\n```\n\n### `importmap-html`\n\nUpdates the `\u003cscript type=\"importmap\"\u003e` in an HTML file\n```\nUsage: importmap-html [options] \u003chtml-file\u003e\n\nCLI utility for updating `\u003cscript type=\"importmap\"\u003e` in HTML files\n\nOptions:\n  -V, --version                output the version number\n  -a, --algo [algo]            Hashing algorigthm to use for `integrity` (default: \"SHA-384\")\n  -s, --spaces [spaces]        Spaces to indent with\n  -i, --importmap [importmap]  Source importmap.json file.\n  -h, --help                   display help for command\n```\n\n### CLI Example\n\n```bash\nimportmap-utils -o importmap.json\n\n# Or...\n\nimportmap-utils -i importmap.json -o importmap.yml -f yaml\n\nimportmap-html index.html\n\nimportmap index.html -i imports.json -a sha-512\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshgysk8zer0%2Fimportmap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshgysk8zer0%2Fimportmap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshgysk8zer0%2Fimportmap/lists"}