@whoj/manage-pkg
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

manage-pkg

Version Typings Linting Status License

Install / Uninstall package(s) programmatically. Detect package managers automatically (npm, yarn and pnpm). Skips already installed packages. Powered by @antfu/ni

npm i @whoj/manage-pkg

Install Package

import { installPackage } from '@whoj/manage-pkg';

await installPackage('unplugin', { dev: true });

Uninstall Package

import { uninstallPackage } from '@whoj/manage-pkg';

await uninstallPackage('unplugin', { silent: true });

Check if installed or not

import { checkPackageStatus } from '@whoj/manage-pkg';

// This will return false OR package's installed version number
await checkPackageStatus('unplugin');

License

MIT License © 2022 Jonson B.

Readme

Keywords

Package Sidebar

Install

npm i @whoj/manage-pkg

Weekly Downloads

4

Version

1.1.0

License

MIT

Unpacked Size

17.3 kB

Total Files

9

Last publish

Collaborators

  • who_j
  • who_jonson