JSPM

which-pm-runs

2.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4547148
  • Score
    100M100P100Q233481F
  • License MIT

Detects what package manager executes the process

Package Exports

  • which-pm-runs

Readme

which-pm-runs

Detects what package manager executes the process

npm version

Supports npm, pnpm, Yarn, cnpm, and bun. 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