0.0.4 • Published 2 years ago

autoinstall-pkg v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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.