get-module-path
v1.0.0
Published
get module path
Downloads
3
Readme
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