{"id":20098579,"url":"https://github.com/dishait/autoinstall-pkg","last_synced_at":"2026-05-01T04:32:26.676Z","repository":{"id":57700725,"uuid":"497277564","full_name":"dishait/autoinstall-pkg","owner":"dishait","description":"自动安装 npm 包","archived":false,"fork":false,"pushed_at":"2024-02-28T08:15:45.000Z","size":98,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-13T06:09:36.753Z","etag":null,"topics":["autoinstall","npm","pkg","typescript"],"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/dishait.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":"2022-05-28T09:53:10.000Z","updated_at":"2022-11-29T00:36:48.000Z","dependencies_parsed_at":"2022-09-26T21:11:49.967Z","dependency_job_id":null,"html_url":"https://github.com/dishait/autoinstall-pkg","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":"markthree/node-lib-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dishait%2Fautoinstall-pkg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dishait%2Fautoinstall-pkg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dishait%2Fautoinstall-pkg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dishait%2Fautoinstall-pkg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dishait","download_url":"https://codeload.github.com/dishait/autoinstall-pkg/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241536811,"owners_count":19978404,"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":["autoinstall","npm","pkg","typescript"],"created_at":"2024-11-13T17:05:57.910Z","updated_at":"2026-05-01T04:32:21.636Z","avatar_url":"https://github.com/dishait.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# autoinstall-pkg\n\n自动安装 `npm` 包\n\n\u003cbr /\u003e\n\n## features 🦕\n\n- 支持 `esmodule` 模块\n- 支持 `npm`，`yarn` 和 `pnpm` 管理器\n\n\u003cbr /\u003e\n\u003cbr /\u003e\n\n## Usage 🦖\n\n### install\n\n```shell\npnpm i autoinstall-pkg\n```\n\n### cli\n\n```shell\naip -h\n```\n\n### program\n\n```ts\nimport { autoInstallPkg } from \"autoinstall-pkg\"\n\nautoInstallPkg() // 将扫描当前工作目录的 src 下的所有 ts 模块引入\n```\n\n```ts\n// src/index.ts\nimport Koa from 'koa' // 引入模块不存在时将触发自动安装\n```\n\n\u003cbr /\u003e\n\u003cbr /\u003e\n\n## License\n\nMade with [markthree](https://github.com/markthree)\n\nPublished under [MIT License](./LICENSE).\n\n\n\u003cbr /\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdishait%2Fautoinstall-pkg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdishait%2Fautoinstall-pkg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdishait%2Fautoinstall-pkg/lists"}