# npm-cli-path

> Resolve the path of `npm-cli.js` included in the globally installed npm CLI

Latest version **4.0.0** (published 2019-05-31) · ISC license · 0 weekly downloads

## Install

```sh
npm install npm-cli-path
pnpm add npm-cli-path
yarn add npm-cli-path
bun add npm-cli-path
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 4.0.0 |
| Published | 2019-05-31 |
| First published | 2015-11-17 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 4.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Watanabe Shinnosuke |
| Maintainers | shinnn |
| Keywords | npm, npm-cli, cli, path, bin, entry, entry-point, file, find, pinpoint, resolve, promise, promises, then, async, asynchronous, asynchronously |

## Links

- npm: https://www.npmjs.com/package/npm-cli-path
- Repository: https://github.com/shinnn/npm-cli-path
- Homepage: https://github.com/shinnn/npm-cli-path#readme
- Issues: https://github.com/shinnn/npm-cli-path/issues
- npm.io page: https://npm.io/package/npm-cli-path

## Dependencies (3)

- [which](https://npm.io/package/which.md) ^1.3.1
- [executing-npm-path](https://npm.io/package/executing-npm-path.md) ^1.0.0
- [win-user-installed-npm-cli-path](https://npm.io/package/win-user-installed-npm-cli-path.md) ^4.0.0

## Alternatives

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@uppy/url](https://npm.io/package/@uppy/url.md) — 185.8K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads

## Recent versions

- 4.0.0 (latest) — 2019-05-31
- 3.1.2 — 2018-08-20
- 3.1.1 — 2018-08-15
- 2.0.5 — 2018-06-22
- 2.0.4 — 2018-06-22
- 3.1.0 — 2018-06-18
- 3.0.0 — 2018-06-08
- 3.0.0-0 — 2018-06-05
- 2.0.3 — 2018-05-16
- 2.0.1 — 2017-11-24
- 2.0.0 — 2016-06-19
- 1.0.0 — 2015-11-18
- 0.0.0 — 2015-11-17

## README

# npm-cli-path

[![npm version](https://img.shields.io/npm/v/npm-cli-path.svg)](https://www.npmjs.com/package/npm-cli-path)
[![Build Status](https://travis-ci.com/shinnn/npm-cli-path.svg?branch=master)](https://travis-ci.com/shinnn/npm-cli-path)
[![codecov](https://codecov.io/gh/shinnn/npm-cli-path/branch/master/graph/badge.svg)](https://codecov.io/gh/shinnn/npm-cli-path)

Resolve the path of [`npm-cli.js`][npm-cli] included in the globally installed [npm](https://www.npmjs.com/) CLI

```javascript
const npmCliPath = require('npm-cli-path');

(async () => {
  const path = npmCliPath(); //=> '/usr/local/lib/node_modules/npm/bin/npm-cli.js'
})();
```

## Installation

[Use](https://docs.npmjs.com/cli/install) [npm](https://docs.npmjs.com/about-npm/).

```
npm install npm-cli-path
```

## API

```javascript
const npmCliPath = require('npm-cli-path');
```

### npmCliPath()

Return: `Promise<string>`

It resolves the path of [`npm-cli.js`][npm-cli] which is the entry point of [npm CLI](https://github.com/npm/cli).

## License

[ISC License](./LICENSE) © 2017 - 2019 Watanabe Shinnosuke

[npm-cli]: https://github.com/npm/cli/blob/latest/bin/npm-cli.js

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