nmpath

0.1.2 • Public • Published

NMPath

Find the nearest node_modules directory relate to specific directory.

Install

npm install nmpath --save

Usage

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

Copyright (c) 2019, Owen Luke

Readme

Keywords

none

Package Sidebar

Install

npm i nmpath

Weekly Downloads

8

Version

0.1.2

License

MIT

Unpacked Size

2.71 kB

Total Files

6

Last publish

Collaborators

  • owenluke