Skip to content

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

License

Notifications You must be signed in to change notification settings

AndersDJohnson/is-npm-not-yarn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published