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.

latest
Source
npmnpm
Version
2.1.0
Version published
Weekly downloads
17M
69.63%
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 15 Sep 2026

Related posts