1.3.4 • Published 1 year ago

@node-kit/pm-info v1.3.4

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@node-kit/pm-info

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

NPM version Codacy Badge Test coverage License

Sonar

Install

# use pnpm
$ pnpm install -D @node-kit/pm-info

# use yarn
$ yarn add -D @node-kit/pm-info

# use npm
$ npm install -D @node-kit/pm-info

Usage

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

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

1.3.4

1 year ago

1.3.3

1 year ago

1.3.2

1 year ago

1.3.1

1 year ago

1.3.0

1 year ago

1.3.0-beta.1

1 year ago

1.2.1

1 year ago

1.2.0

1 year ago

1.1.0

1 year ago