Nerds Pledge Magnanimously

    which-pm-runs
    DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/which-pm-runs package

    1.1.0 • Public • Published

    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"}

    Related

    • which-pm - Detects what package manager was used for installation

    License

    MIT © Zoltan Kochan

    Install

    npm i which-pm-runs

    DownloadsWeekly Downloads

    2,629,244

    Version

    1.1.0

    License

    MIT

    Unpacked Size

    3.16 kB

    Total Files

    4

    Last publish

    Collaborators

    • zkochan