Get Module Path
npm install get-module-path
Use
const getModulePath = ; const module_name = 'app';const module_path = ; // /home/dev/[sth]/appconst relative_module_path = ; // node_modules/app
Author
0x0a0d
npm install get-module-path
const getModulePath = ; const module_name = 'app';const module_path = ; // /home/dev/[sth]/appconst relative_module_path = ; // node_modules/app
0x0a0d
npm i get-module-path
0
1.0.0
ISC
1.21 kB
3