kjelsrud.dev/node_modules/which-pm-runs
2023-07-19 21:31:30 +02:00
..
index.js 🎉 initiate project *astro_rewrite* 2023-07-19 21:31:30 +02:00
LICENSE 🎉 initiate project *astro_rewrite* 2023-07-19 21:31:30 +02:00
package.json 🎉 initiate project *astro_rewrite* 2023-07-19 21:31:30 +02:00
README.md 🎉 initiate project *astro_rewrite* 2023-07-19 21:31:30 +02:00

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"}
  • which-pm - Detects what package manager was used for installation

License

MIT © Zoltan Kochan