{"id":16347707,"url":"https://github.com/privatenumber/systemjs-unpkg","last_synced_at":"2025-03-03T16:30:52.866Z","repository":{"id":56211255,"uuid":"312759987","full_name":"privatenumber/systemjs-unpkg","owner":"privatenumber","description":"SystemJS extra to auto-resolve bare specifiers to UNPKG","archived":false,"fork":false,"pushed_at":"2020-12-03T18:18:12.000Z","size":107,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"develop","last_synced_at":"2025-02-26T19:17:59.730Z","etag":null,"topics":["auto","bare","extra","resolve","specifier","systemjs","unpkg"],"latest_commit_sha":null,"homepage":"","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/privatenumber.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}},"created_at":"2020-11-14T06:28:17.000Z","updated_at":"2023-06-02T01:08:34.000Z","dependencies_parsed_at":"2022-08-15T14:41:07.788Z","dependency_job_id":null,"html_url":"https://github.com/privatenumber/systemjs-unpkg","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/privatenumber%2Fsystemjs-unpkg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/privatenumber%2Fsystemjs-unpkg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/privatenumber%2Fsystemjs-unpkg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/privatenumber%2Fsystemjs-unpkg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/privatenumber","download_url":"https://codeload.github.com/privatenumber/systemjs-unpkg/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241698977,"owners_count":20005299,"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":["auto","bare","extra","resolve","specifier","systemjs","unpkg"],"created_at":"2024-10-11T00:45:02.167Z","updated_at":"2025-03-03T16:30:52.557Z","avatar_url":"https://github.com/privatenumber.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# systemjs-unpkg [![Latest version](https://badgen.net/npm/v/systemjs-unpkg)](https://npm.im/systemjs-unpkg) [![Monthly downloads](https://badgen.net/npm/dm/systemjs-unpkg)](https://npm.im/systemjs-unpkg) [![Install size](https://packagephobia.now.sh/badge?p=systemjs-unpkg)](https://packagephobia.now.sh/result?p=systemjs-unpkg) [![Bundle size](https://badgen.net/bundlephobia/minzip/systemjs-unpkg)](https://bundlephobia.com/result?p=systemjs-unpkg)\n\nAuto-resolve bare specifiers in [SystemJS](https://github.com/systemjs/systemjs) using [UNPKG](https://unpkg.com).\n\n**Before**\n\nWithout this plugin, you have to manually declare individual dependencies in an importmap.\n\n```html\n\u003cscript type=\"systemjs-importmap\"\u003e\n{\n  \"imports\": {\n    \"lodash/\": \"//unpkg.com/lodash/\",\n    ...\n  }\n}\n\u003c/script\u003e\n```\n\n```js\n// Won't work unless the importmap above is declared\nconst _ = await System.import('lodash');\n```\n\n**After\u003csup\u003e✨\u003c/sup\u003e**\n\n```js\n// Automatically resolved without importmap!\nconst _ = await System.import('lodash');\n```\n\n**You can also specify npm semver ranges and tags**\n\n```js\nconst $ = await System.import('jquery@2.2.4');\n\nconst $ = await System.import('jquery@^2.2.4');\n\nconst d3 = await System.import('d3@next');\n```\n\nHere's a [starter CodePen template](https://codepen.io/privatenumber/pen/pobGZmR?editors=0010) to get you started!\n\n\u003csub\u003eIf you like this project, please star it \u0026 [follow me](https://github.com/privatenumber) to see what other cool projects I'm working on! ❤️\u003c/sub\u003e\n\n## 🙋‍♂️ Why?\n- **⚡️ Simplify SystemJS setup** Zero config setup to seamlessly resolve arbitrary bare specifiers with versions!\n- **🔥 Import map fallback** Only resolves specifiers that aren't defined in your [import map](https://github.com/systemjs/systemjs/blob/master/docs/import-maps.md)!\n- **🐥 Tiny** Only `338B`!\n\n## 🚀 Install\n```sh\nnpm i systemjs-unpkg\n```\n\n## 🚦 Quick Setup\nSimply load `systemjs-unpkg` after you load SystemJS.\n\nIf you're using a JS bundler:\n\n```js\n// Load systemjs\nimport 'systemjs';\n\n// Load the systemjs AMD extra, as most npm packages have UMD/AMD distributions\nimport 'systemjs/dist/extras/amd';\n\n// Load systemjs-unpkg\nimport 'systemjs-unpkg';\n```\n\nIf in a browser:\n\n```html\n\u003c!-- Load systemjs --\u003e\n\u003cscript src=\"//unpkg.com/systemjs/dist/system.min.js\"\u003e\u003c/script\u003e\n\n\u003c!-- Load the systemjs AMD extra, as most npm packages have UMD/AMD distributions --\u003e\n\u003cscript src=\"//unpkg.com/systemjs/dist/extras/amd.min.js\"\u003e\u003c/script\u003e\n\n\u003c!-- Load systemjs-unpkg --\u003e\n\u003cscript src=\"//unpkg.com/systemjs-unpkg\"\u003e\u003c/script\u003e\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprivatenumber%2Fsystemjs-unpkg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprivatenumber%2Fsystemjs-unpkg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprivatenumber%2Fsystemjs-unpkg/lists"}