Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.
/ pm-info Public archive

A simple utility to get the package manager information which used in the project

License

Notifications You must be signed in to change notification settings

saqqdy/pm-info

Repository files navigation

pm-info

A simple utility to get the package manager information which used in the project

NPM version Codacy Badge Test coverage License

Sonar

Full API docs: API Docs

This project has been migrated to pm-info

Install

# use pnpm
$ pnpm install -D pm-info

# use yarn
$ yarn add -D pm-info

# use npm
$ npm install -D pm-info

Usage

  1. use pm-info in async mode s
import { pmInfo } from 'pm-info'

pmInfo().then(info => {
  console.log('The package manager is: ', info) // { name: 'pnpm', version: '7.25.0' } | null
})
  1. use pm-info in sync mode
import { pmInfoSync } from 'pm-info'

console.log('The package manager is: ', pmInfoSync()) // { name: 'pnpm', version: '7.25.0' } | null

Issues & Support

Please open an issue here.

License

MIT

About

A simple utility to get the package manager information which used in the project

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published