/used-pm----fork-for-contribution

Fork repository for contribution to used-pm ( https://github.com/mheob/used-pm )

Primary LanguageTypeScriptMIT LicenseMIT

used-pm - What package manager is used?

Lightweight script to detect which package manager executes the current process.

Installation

Use your favorite package manager to install used-pm. For example:

npm install used-pm

or

yarn add used-pm

or

pnpm add used-pm

Usage

In esm:

import currentPackageManager from 'used-pm';

const { name, version } = currentPackageManager();

In commonjs:

const currentPackageManager = require('used-pm');

const { name, version } = currentPackageManager();