which-pm

WebJar for which-pm

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

which-pm
Last Version

Last Version

1.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

which-pm
WebJar for which-pm
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/zkochan/which-pm

Download which-pm

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/which-pm/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>which-pm</artifactId>
    <version>1.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/which-pm/
implementation 'org.webjars.npm:which-pm:1.1.0'
// https://jarcasting.com/artifacts/org.webjars.npm/which-pm/
implementation ("org.webjars.npm:which-pm:1.1.0")
'org.webjars.npm:which-pm:jar:1.1.0'
<dependency org="org.webjars.npm" name="which-pm" rev="1.1.0">
  <artifact name="which-pm" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='which-pm', version='1.1.0')
)
libraryDependencies += "org.webjars.npm" % "which-pm" % "1.1.0"
[org.webjars.npm/which-pm "1.1.0"]

Dependencies

compile (2)

Group / Artifact Type Version
org.webjars.npm : load-yaml-file jar [0.1.0,0.2)
org.webjars.npm : path-exists jar [3.0.0,4)

Project Modules

There are no modules declared in this project.

This package has been move to https://github.com/zkochan/packages/tree/master/which-pm

which-pm

Detects what package manager was used for installation

npm version Build Status

Can detect npm, pnpm and yarn.

Installation

npm i which-pm
# or
pnpm i which-pm
# or
yarn 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

Versions

Version
1.1.0