New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

@antfu/install-pkg

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@antfu/install-pkg

Install package programmatically.

Source
npmnpm
Version
2.0.1
Version published
Weekly downloads
14M
-0.06%
Maintainers
1
Weekly downloads
 
Created
Source

install-pkg

NPM version

Install package programmatically. Detect package managers automatically (npm, yarn, bun and pnpm).

npm i @antfu/install-pkg
import { installPackage } from '@antfu/install-pkg'

await installPackage('vite', { silent: true })

Sponsors

Sponsors

License

MIT License © 2021 Anthony Fu

FAQs

Package last updated on 21 Jul 2026

Related posts