|
il y a 2 ans | |
---|---|---|
.. | ||
LICENSE | il y a 2 ans | |
README.md | il y a 2 ans | |
index.js | il y a 2 ans | |
package.json | il y a 2 ans |
Detects what package manager executes the process
Supports npm, pnpm, Yarn, cnpm. And also any other package manager that sets the npm_config_user_agent
env variable.
pnpm add which-pm-runs
'use strict'
const whichPMRuns = require('which-pm-runs')
whichPMRuns()
//> {name: "pnpm", version: "0.64.2"}