Skip to content

Repository files navigation

autoinstall-pkg

自动安装 npm


features 🦕

  • 支持 esmodule 模块
  • 支持 npmyarnpnpm 管理器


Usage 🦖

install

pnpm i autoinstall-pkg

cli

aip -h

program

import { autoInstallPkg } from "autoinstall-pkg"

autoInstallPkg() // 将扫描当前工作目录的 src 下的所有 ts 模块引入
// src/index.ts
import Koa from 'koa' // 引入模块不存在时将触发自动安装


License

Made with markthree

Published under MIT License.


About

自动安装 npm 包

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages