New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

caniuse-yarn

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

caniuse-yarn

Check if Yarn is available.

1.0.1
latest
Source
npm
Version published
Maintainers
1
Created
Source

caniuse-yarn

NPM npm npm npm type definitions pipeline status

Check if Yarn is available.

Installation

npm install caniuse-yarn
# or
yarn add caniuse-yarn
# or
yarn install caniuse-yarn

CLI

You can also install as global package to use CLI.

npm install -g caniuse-yarn
# or
yarn global add caniuse-yarn
caniuse-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.');
}
  • 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.

Keywords

yarn

FAQs

Package last updated on 15 Apr 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts