{"id":13656650,"url":"https://github.com/chase-moskal/importly","last_synced_at":"2025-04-15T14:46:37.940Z","repository":{"id":47069857,"uuid":"177052719","full_name":"chase-moskal/importly","owner":"chase-moskal","description":"import map generator","archived":false,"fork":false,"pushed_at":"2023-11-07T02:58:16.000Z","size":231,"stargazers_count":58,"open_issues_count":4,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-13T07:40:59.376Z","etag":null,"topics":["es-modules","import-maps","package-manager"],"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/chase-moskal.png","metadata":{"files":{"readme":"readme.md","changelog":"changelog.md","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}},"created_at":"2019-03-22T01:45:32.000Z","updated_at":"2024-10-25T15:29:24.000Z","dependencies_parsed_at":"2024-01-15T20:50:45.739Z","dependency_job_id":"9598bc61-231a-4fd9-9679-5781aa4e6243","html_url":"https://github.com/chase-moskal/importly","commit_stats":{"total_commits":84,"total_committers":3,"mean_commits":28.0,"dds":"0.023809523809523836","last_synced_commit":"3aa3b33ac5790c449a399c49de408c9bc03a0f9f"},"previous_names":["chase-moskal/greenlit"],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chase-moskal%2Fimportly","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chase-moskal%2Fimportly/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chase-moskal%2Fimportly/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chase-moskal%2Fimportly/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chase-moskal","download_url":"https://codeload.github.com/chase-moskal/importly/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248681471,"owners_count":21144698,"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":["es-modules","import-maps","package-manager"],"created_at":"2024-08-02T05:00:28.677Z","updated_at":"2025-04-15T14:46:37.920Z","avatar_url":"https://github.com/chase-moskal.png","language":"TypeScript","funding_links":[],"categories":["JavaScript","TypeScript"],"sub_categories":[],"readme":"\n# 📦📡 ***importly*** — import map generator\n\nimportly is a command-line utility that generates [import maps](https://github.com/WICG/import-maps).\n\nso your apps can load es module packages without a bundler.\n\nworks nicely with [es-module-shims](https://github.com/guybedford/es-module-shims).\n\n\u003cbr/\u003e\n\n## 🛸 importly basic usage\n\n```sh\nnpx importly \u003c package-lock.json \u003e importmap.json\n```\n\n\u003cbr/\u003e\n\n**`--host=node_modules`**  \nspecify where the import map points to.  \nwhere the dependencies will be loaded from.  \n- `--host=node_modules` *(default)* — point to your node_modules directory\n- `--host=unpkg` — point to the [unpkg](https://unpkg.com/) cdn\n- `--host=jsdelivr` — point to the [jsdelivr](https://www.jsdelivr.com/) cdn\n\n\u003cbr/\u003e\n\n**`--dev`**  \ninclude your package's devDependencies.  \n\n\u003cbr/\u003e\n\n**`--lookup=node_modules`**  \ntell importly where to seek information about packages.  \nit needs to inspect each package json.  \n- `--lookup=node_modules` *(default)* — look in your local node_modules directory\n- `--lookup=unpkg` — query the [unpkg](https://unpkg.com/) cdn\n- `--lookup=jsdelivr` — query the [jsdelivr](https://www.jsdelivr.com/) cdn\n\n\u003cbr/\u003e\n\n**`--root=/`**  \nthe url prefix that leads to your node_modules directory.  \nthis affects where the importmap is pointing to.  \nonly applies when `--host=node_modules`.  \n- `--root=/` *(default)* — find node_modules at your server root\n- `--root=\"\"` — find node_modules in the current directory\n- `--root=/my/special/path/` — find node_modules at `/my/special/path/node_modules`\n\n\u003cbr/\u003e\n\n**`--semver=exact`**  \nthe semver prefix to use on the import map versions.  \nonly applies when pointing to a cloud cdn.  \n- `--semver=exact` or `--semver=\"\"` *(default)* no prefix, use pinned versions\n- `--semver=major` or `--semver=^` pin major version, with caret prefix\n- `--semver=minor` or `--semver=~` pin minor version, with tilde prefix\n\n\u003cbr/\u003e\n\n**`--mini`**  \nminify importmap output.  \neliminates whitespace.  \n\n\u003cbr/\u003e\n\n## 🌠 the more you know, about importly\n\nyou don't have to use a `package-lock.json`\n- a `package.json` will work.\n- actually, any json that has `dependencies` will work.\n- however, the `package-lock.json` is better because it includes subdependencies (and they're scoped, which means your dependencies can use different versions of a single subdependency)\n\nscoped subdependencies only work when\n- you're using a `package-lock.json`\n- and you're using `--host=node_modules`\n\nworks offline when\n- you're using `--host=node_modules`\n- and you're using `--lookup=node_modules`\n\n\u003cbr/\u003e\n\n## 🍻 importly is open source\n\n- ask any questions in the issues or discussions tab\n- fix that bug, send me those pull requests\n- show me some love with your sweet github stars\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchase-moskal%2Fimportly","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchase-moskal%2Fimportly","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchase-moskal%2Fimportly/lists"}