which-pm-runs-cli

1.0.5 • Public • Published

which-pm-runs-cli

Easily know which package manager is running your package.json scripts.

Usage

yarn add --dev which-pm-runs-cli
{
    "scripts": {
        "preinstall": "which-pm-runs --is yarn || echo 🛑 Yarn is required to setup this project!"
    }
}
❯ npm install
[...]
npm ERR! code ELIFECYCLE
❯ echo $?
1

❯ yarn install
[...]
❯ echo $?
0

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.00beta
1.0.514latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.514
1.0.42
1.0.32
1.0.20
1.0.10
1.0.00

Package Sidebar

Install

npm i which-pm-runs-cli

Weekly Downloads

2

Version

1.0.5

License

MIT

Last publish

Collaborators

  • fezvrasta