@antfu/install-pkg is a tiny yet powerful npm package for programmatically installing npm packages. It simplifies the process of adding dependencies or devDependencies to your project from within your code. It offers a clean API to install packages using various package managers like npm, yarn, or pnpm, automatically detecting the best one to use. This package is ideal for automating setup scripts or building CLIs that require dynamic package installation.