You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

caniuse-pnpm

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

caniuse-pnpm

Check if pnpm is available.

2.0.0
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

caniuse-pnpm

NPM npm npm npm type definitions pipeline status

Check if pnpm is available.

Installation

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

CLI

You can also install as global package to use CLI.

npm install -g caniuse-pnpm
# or
yarn global add caniuse-pnpm
caniuse-pnpm

Check if pnpm is available.

Options:
  --help, -h     Show help                                             [boolean]
  --version, -v  Show version number                                   [boolean]

Usage

const caniusePNPM = require('caniuse-pnpm');

if (caniusePNPM()) {
	console.log('pnpm is available. You can use pnpm.');
} else {
	console.log('pnpm is not available! You cannot use pnpm.');
}
  • has-pnpm - Check if a project is using pnpm.
  • caniuse-yarn - Check if Yarn is available.

Keywords

pnpm

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