# nmpath

> Find the nearest node_modules directory relate to specific directory.

Latest version **0.1.2** (published 2019-12-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install nmpath
pnpm add nmpath
yarn add nmpath
bun add nmpath
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2019-12-20 |
| First published | 2019-12-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 2.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | hi.owen.luke@gmail.com |
| Maintainers | owenluke |

## Links

- npm: https://www.npmjs.com/package/nmpath
- npm.io page: https://npm.io/package/nmpath

## Dependencies (1)

- [caller](https://npm.io/package/caller.md) ^1.0.1

## Recent versions

- 0.1.2 (latest) — 2019-12-20
- 0.1.1 — 2019-12-20
- 0.1.0 — 2019-12-20

## README

# NMPath

Find the nearest node_modules directory relate to specific directory.

## Install

```sh
npm install nmpath --save
```

## Usage

```js
const nmpath = require('nmpath');

// If the destFolder is omitted, the directory where the current file is located will be used.
const destFolder = __dirname;
const node_modules = nmpath(destFolder);

console.log(node_modules);
```

## License

[MIT](LICENSE)

Copyright (c) 2019, Owen Luke

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