Detects what package manager executes the process
npm i which-pm-runs
'use strict' const whichPMRuns = require('which-pm-runs') whichPMRuns() //> {name: "pnpm", version: "0.64.2"}
MIT © Zoltan Kochan