lihai 8d6c751f49 feat: push 2 years ago
..
LICENSE 8d6c751f49 feat: push 2 years ago
README.md 8d6c751f49 feat: push 2 years ago
index.js 8d6c751f49 feat: push 2 years ago
package.json 8d6c751f49 feat: push 2 years ago

README.md

which-pm-runs

Detects what package manager executes the process

npm version

Supports npm, pnpm, Yarn, cnpm. And also any other package manager that sets the npm_config_user_agent env variable.

Installation

pnpm add which-pm-runs

Usage

'use strict'
const whichPMRuns = require('which-pm-runs')

whichPMRuns()
//> {name: "pnpm", version: "0.64.2"}

Related

  • which-pm - Detects what package manager was used for installation

License

MIT © Zoltan Kochan