# @node-kit/pm-info

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

Latest version **1.3.4** (published 2023-01-22) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @node-kit/pm-info
pnpm add @node-kit/pm-info
yarn add @node-kit/pm-info
bun add @node-kit/pm-info
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.3.4 |
| Published | 2023-01-22 |
| First published | 2023-01-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 9.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 26 |
| Author | saqqdy |
| Maintainers | saqqdy |
| Keywords | node-kit, packageManager, pm-info, pm-information |

## Links

- npm: https://www.npmjs.com/package/@node-kit/pm-info
- Repository: https://github.com/saqqdy/node-kit
- Homepage: https://github.com/saqqdy/node-kit/tree/master/packages/pm-info#readme
- Issues: https://github.com/saqqdy/node-kit/issues
- npm.io page: https://npm.io/package/@node-kit/pm-info

## Dependencies (1)

- [load-yaml-file](https://npm.io/package/load-yaml-file.md) ^1.0.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.3.4 (latest) — 2023-01-22
- 1.3.0-beta.1 (beta) — 2023-01-20
- 1.3.3 — 2023-01-22
- 1.3.2 — 2023-01-22
- 1.3.1 — 2023-01-22
- 1.3.0 — 2023-01-22
- 1.2.1 — 2023-01-18
- 1.2.0 — 2023-01-18
- 1.1.0 — 2023-01-18

## README

<div style="text-align: center;" align="center">

# @node-kit/pm-info

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

[![NPM version][npm-image]][npm-url]
[![Codacy Badge][codacy-image]][codacy-url]
[![Test coverage][codecov-image]][codecov-url]
[![License][license-image]][license-url]

[![Sonar][sonar-image]][sonar-url]

</div>

## Install

```bash
# 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

```js
import { pmInfo } from '@node-kit/pm-info'

pmInfo().then(info => {
  console.log('The package manager is: ', info) // { name: 'pnpm', version: '7.25.0' } | null
})
```

2. use `@node-kit/pm-info` in sync mode

```js
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](https://github.com/saqqdy/node-kit/issues).

## License

[MIT](LICENSE)

[npm-image]: https://img.shields.io/npm/v/@node-kit/pm-info.svg?style=flat-square
[npm-url]: https://npmjs.org/package/@node-kit/pm-info
[codacy-image]: https://app.codacy.com/project/badge/Grade/f70d4880e4ad4f40aa970eb9ee9d0696
[codacy-url]: https://www.codacy.com/gh/saqqdy/@node-kit/pm-info/dashboard?utm_source=github.com&utm_medium=referral&utm_content=saqqdy/@node-kit/pm-info&utm_campaign=Badge_Grade
[codecov-image]: https://img.shields.io/codecov/c/github/saqqdy/@node-kit/pm-info.svg?style=flat-square
[codecov-url]: https://codecov.io/github/saqqdy/@node-kit/pm-info?branch=master
[license-image]: https://img.shields.io/badge/License-MIT-blue.svg
[license-url]: LICENSE
[sonar-image]: https://sonarcloud.io/api/project_badges/quality_gate?project=saqqdy_node-kit
[sonar-url]: https://sonarcloud.io/dashboard?id=saqqdy_node-kit

---
_Source: https://npm.io/package/@node-kit/pm-info · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
