Package Exports
- which-pm-runs
- which-pm-runs/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (which-pm-runs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
which-pm-runs
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.
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