which-pm
Detects what package manager was used for installation
Last updated 5 years ago by zkochan .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ gnpm install which-pm 
SYNC missed versions from official npm registry.

which-pm

Detects what package manager was used for installation

npm version

Can detect npm, pnpm and yarn.

Installation

<pnpm|yarn|npm> add which-pm

Usage

'use strict'
const whichpm = require('which-pm')

whichpm(process.cwd())
    .then(pm => console.log(pm))
    .catch(err => console.error(err))
//> {name: "pnpm", version: "0.64.2"}

Related

  • preferred-pm - Returns the preferred package manager of a project
  • which-pm-runs - Detects what package manager executes the process

License

MIT © Zoltan Kochan

Current Tags

  • 2.0.0                                ...           latest (5 years ago)

5 Versions

  • 2.0.0                                ...           5 years ago
  • 1.1.0                                ...           6 years ago
  • 1.0.1                                ...           7 years ago
  • 1.0.0                                ...           8 years ago
  • 0.0.0                                ...           8 years ago
Maintainers (1)
Downloads
Today 1
This Week 1
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (3)

Copyright 2013 - present © cnpmjs.org | Home |