https://github.com/sudongyuer/obtain-package-manager
https://github.com/sudongyuer/obtain-package-manager
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sudongyuer/obtain-package-manager
- Owner: sudongyuer
- License: mit
- Created: 2022-09-01T16:46:36.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-09-05T15:08:06.000Z (about 3 years ago)
- Last Synced: 2025-02-22T19:22:28.033Z (8 months ago)
- Language: TypeScript
- Size: 66.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# obtain-package-manager
Obtain the package manager you are using.[](https://www.npmjs.com/package/obtain-package-manager)
## 🚀 Features
- Zero dependencies
- Obtain a package manager of the current repository## Usage
```js
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
- [detect-package-manager](https://github.com/egoist/detect-package-manager)
## Author
sudongyuer email:976499226@qq.com## License
[MIT](./LICENSE) License © 2021 [SuDongYu](https://github.com/sudongyuer)