# @pnpm/package-bins

> Returns bins of a package

Latest version **1000.0.17** (published 2026-01-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install @pnpm/package-bins
pnpm add @pnpm/package-bins
yarn add @pnpm/package-bins
bun add @pnpm/package-bins
```

## Health

**Score 75/100 (B)** — status: stable.

Positive: has types; esm support; no vulnerabilities; has provenance; high maintenance score; high quality score; popular repo.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1000.0.17 |
| Published | 2026-01-26 |
| First published | 2018-03-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=18.12 |
| Dependencies | 3 |
| Unpacked size | 7.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 36776 |
| Maintainers | pnpmuser, zkochan |
| Keywords | pnpm, pnpm10, bins |

## Links

- npm: https://www.npmjs.com/package/@pnpm/package-bins
- Repository: https://github.com/pnpm/pnpm.git#main
- Homepage: https://github.com/pnpm/pnpm/tree/main/pkg-manager/package-bins#readme
- Issues: https://github.com/pnpm/pnpm/issues
- Funding: https://opencollective.com/pnpm
- npm.io page: https://npm.io/package/@pnpm/package-bins

## Dependencies (3)

- [is-subdir](https://npm.io/package/is-subdir.md) ^1.2.0
- [tinyglobby](https://npm.io/package/tinyglobby.md) ^0.2.14
- [@pnpm/types](https://npm.io/package/@pnpm/types.md) 1001.3.0

## Recent versions

- 1000.0.17 (latest) — 2026-01-26
- 1000.0.18 (latest-10) — 2026-06-10
- 5.0.13 (latest-6) — 2022-07-05
- 4.0.7 (pnpm-temp) — 2020-06-22
- 1000.0.16 — 2026-01-19
- 1000.0.15 — 2025-12-15
- 1000.0.14 — 2025-12-08
- 1000.0.13 — 2025-11-20
- 1000.0.12 — 2025-11-09
- 1000.0.11 — 2025-10-21
- 1000.0.10 — 2025-09-12
- 1000.0.9 — 2025-07-23
- 1000.0.8 — 2025-05-13
- 1000.0.7 — 2025-04-21
- 1000.0.6 — 2025-04-07
- … 67 more at https://npm.io/package/@pnpm/package-bins/versions

## README

# @pnpm/package-bins

> Returns bins of a package

<!--@shields('npm')-->
[![npm version](https://img.shields.io/npm/v/@pnpm/package-bins.svg)](https://www.npmjs.com/package/@pnpm/package-bins)
<!--/@-->

## Installation

```sh
pnpm add @pnpm/package-bins
```

## Usage

```ts
import getBinsFromPkg from '@pnpm/package-bins'

await getBinsFromPkg(path.resolve('package.json'), process.cwd())
//> [{name: 'bin-name', path: 'path-to-bin'}]
```

## API

### `getBinsFromPkg(packageJson, pathToPkg): Promise<Array<{name: string, path: string}>>`

## License

[MIT](./LICENSE)

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