module-path(1)
locate the path of an installed node module
installation
$ npm install module-path [-g]
usage
API:
var modulePath = ; // global modulevar pathOfZFinder = ;// => /Users/liangwensen/.nvm/versions/node/v4.2.2/lib/node_modules/.zfinder_npminstall/zfinder/0.2.9/zfinder/lib/index.js // local modulevar pathOfJasmine = ;// => /Users/liangwensen/repo/leungwensen/node-module-path/node_modules/.npminstall/jasmine/2.5.2/jasmine/lib/jasmine.js // core modulevar pathOfPath = ;// => path
CLI:
$ npm install module-path -g$ module-path zfinder# /Users/liangwensen/.nvm/versions/node/v4.2.2/lib/node_modules/.zfinder_npminstall/zfinder/0.2.9/zfinder/lib/index.js $ module-path npm# /Users/liangwensen/.nvm/versions/node/v4.2.2/lib/node_modules/npm/lib/npm.js