2.0.5 • Published 6 years ago

is-npm-not-yarn v2.0.5

Weekly downloads
11,435
License
ISC
Repository
github
Last release
6 years ago

is-npm-not-yarn

Detect if code is running as an npm script but not a yarn script.

Note: Use with >= yarn@1 requires >= is-npm-not-yarn@2.

Install

npm install is-npm-not-yarn (copy) yarn add is-npm-not-yarn (copy)

Use

JS

var isNpmNotYarn = require('is-npm-not-yarn')
console.log(isNpmNotYarn) // true or false

CLI

is-npm-not-yarn

exit code of 0 if is npm and not yarn, else 1

2.0.5

6 years ago

2.0.4

8 years ago

2.0.3

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago