obtain-package-manager
v0.1.0
Published
obtain which package manager you're using (yarn or npm)
Downloads
7
Maintainers
Readme
obtain-package-manager
Obtain the package manager you are using.
🚀 Features
- Zero dependencies
- Obtain a package manager of the current repository
Usage
import { clearCache, getPackManagerVersion, getPackageManager } from 'obtain-package-manager'
const packageManager = await getPackageManager() // npm or yarn or pnpm
const packageManagerVersion = await getPackManagerVersion()// 6.14.4
clearCache() // clear cache
🌸 Credits
Author
sudongyuer email:[email protected]