1.0.1 • Published 5 years ago
caniuse-yarn v1.0.1
caniuse-yarn
Check if Yarn is available.
Installation
npm install caniuse-yarn
# or
yarn add caniuse-yarn
# or
yarn install caniuse-yarnCLI
You can also install as global package to use CLI.
npm install -g caniuse-yarn
# or
yarn global add caniuse-yarncaniuse-yarn
Check if Yarn is available.
Options:
--help, -h Show help [boolean]
--version, -v Show version number [boolean]Usage
const caniuseYarn = require('caniuse-yarn');
if (caniuseYarn()) {
console.log('Yarn is available. You can use Yarn.');
} else {
console.log('Yarn is not available! You cannot use Yarn.');
}Related
- caniuse-pnpm - Check if pnpm is available.
- has-yarn - Check if a project is using Yarn.
- has-pnpm - Check if a project is using pnpm.