get-module-path

1.0.0 • Public • Published

Get Module Path

npm install get-module-path

Use

const getModulePath = require('get-module-path');
 
const module_name = 'app';
const module_path = getModulePath(module_name); // /home/dev/[sth]/app
const relative_module_path = getModulePath(module_name, __dirname); // node_modules/app

Author

0x0a0d

Package Sidebar

Install

npm i get-module-path

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

1.21 kB

Total Files

3

Last publish

Collaborators

  • 0x0a0d