{"id":25098540,"url":"https://github.com/zaboco/espm","last_synced_at":"2025-04-02T04:11:20.014Z","repository":{"id":57697950,"uuid":"498728666","full_name":"zaboco/espm","owner":"zaboco","description":"A package manager for ES modules","archived":false,"fork":false,"pushed_at":"2022-06-02T12:20:56.000Z","size":290,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-09T18:18:16.950Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zaboco.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-06-01T12:33:28.000Z","updated_at":"2022-06-01T12:33:51.000Z","dependencies_parsed_at":"2022-09-26T21:01:59.253Z","dependency_job_id":null,"html_url":"https://github.com/zaboco/espm","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaboco%2Fespm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaboco%2Fespm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaboco%2Fespm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaboco%2Fespm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zaboco","download_url":"https://codeload.github.com/zaboco/espm/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246752656,"owners_count":20827987,"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":"2025-02-07T18:32:00.640Z","updated_at":"2025-04-02T04:11:19.996Z","avatar_url":"https://github.com/zaboco.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @zaboco/espm\n\nA package manager for ES modules\n\n| ⚠️  | **Experimental** | This package is an experiment. It is very limited for now, and have known issues. |\n|:---:|:----------------:| :--- |\n\n## Installation\n\nIt is recommended to install this tool globally \n```shell\nnpm i -g @zaboco/espm\n```\n\nIt can also be installed locally, of course:\n```shell\nnpm i -D @zaboco/espm\n```\n\n\u003e **Note**: If you do so, you will have to use `npx` to run the commands. E.g. `npx espm install react`.\n\n## Usage\n\n| ⚠️  | **WIP** | Only adding TS types is available for now |\n|:---:| :---:|:--- |\n\n### Adding TS types\n\nYou can add `.d.ts` files for packages, without installing them with `npm`. It fetches the files from [a CDN](https://esm.sh/). Also fetches imported types, recursively. \n\n```shell\nespm add \u003cpackage\u003e[@version]\n```\n\n## Known issues\n- Type reference paths are ignored `/// \u003creference path=\"./foo.d.ts\" /\u003e`. In this case `./foo.d.ts` is not downloaded from the CDN\n- TS `namespace` syntax is not supported. For example, `espm add preact` would fail. \n- Scoped packages do not work well. E.g. `espm add uvu/assert` will not work as intended.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzaboco%2Fespm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzaboco%2Fespm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzaboco%2Fespm/lists"}