# sb-npm-path

> Get PATH of your node runtime and modules

Latest version **3.0.0** (published 2018-12-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install sb-npm-path
pnpm add sb-npm-path
yarn add sb-npm-path
bun add sb-npm-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 | 3.0.0 |
| Published | 2018-12-30 |
| First published | 2016-03-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 9.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | steelbrain |
| Maintainers | steelbrain |

## Links

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

## Recent versions

- 3.0.0 (latest) — 2018-12-30
- 2.0.0 — 2016-08-25
- 1.0.1 — 2016-07-11
- 1.0.0 — 2016-03-29

## README

NPM-Path
=========


NPM-Path is a helper node module that gives you `PATH` value including all the locally installed npm bins.

## Installation

```sh
npm install --save sb-npm-path
```

## API

```js
function getPath(rootDirectory?: string): string
function getPathAsync(rootDirectory?: string): Promise<string>
function clearCache(): void

export default getPath
export { getPath, getPathAsync, clearCache }
```

## Examples
```js
import { exec } from 'sb-exec'
import npmPath from 'npm-path'

export default async function run() {
  const PATH = await npmPath.async(__dirname)
  return await exec('mocha', { env: { PATH } })
}
```

## License

This project is licensed under the terms of MIT License, see the LICENSE file for more info

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