You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
5 years ago | |
|---|---|---|
| .. | ||
| dist | 5 years ago | |
| LICENSE | 5 years ago | |
| README.md | 5 years ago | |
| package.json | 5 years ago | |
README.md
@umi-material/detect-installler
Determine what package manager should be used
Usage
yarn add detect-installer
const detect = require('detect-installer');
detect(__dirname); // ['tyarn',"yarn"]
// find you install package manger
detect(__dirname).find(detect.hasPackageCommand) // yarn
LICENSE
MIT