module-path
module-path(1) ==============
Last updated 5 years ago by leungwensen .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install module-path 
SYNC missed versions from official npm registry.

module-path(1)

locate the path of an installed node module

installation

$ npm install module-path [-g]

usage

API:

var modulePath = require('module-path');

// global module
var pathOfZFinder = modulePath('zfinder');
// => /Users/liangwensen/.nvm/versions/node/v4.2.2/lib/node_modules/.zfinder_npminstall/zfinder/0.2.9/zfinder/lib/index.js

// local module
var pathOfJasmine = modulePath('jasmine');
// => /Users/liangwensen/repo/leungwensen/node-module-path/node_modules/.npminstall/jasmine/2.5.2/jasmine/lib/jasmine.js

// core module
var pathOfPath = modulePath('path');
// => 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

Thanks to

Current Tags

  • 0.2.0                                ...           latest (5 years ago)

3 Versions

  • 0.2.0                                ...           5 years ago
  • 0.1.0                                ...           5 years ago
  • 0.0.20151019                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 3
Last Day 0
Last Week 3
Last Month 3
Dependencies (1)
Dev Dependencies (2)
Dependents (2)

Copyright 2014 - 2021 © npmmirror.com |