/resolve

a simple tool verify where the module resolve to

Primary LanguageJavaScript

resolve

a simple tool to verify where the module resolve to

install

$ npm install resolve-tool -g 

usage

resolve from current dir

$resolve minimist
minimist resolve to /some/where/node_modules/minimist/index.js

resolve from specified dir or file

$ pwd
/some/other/place/

$resolve minimist --from /some/where
minimist resolve to /some/where/node_modules/minimist/index.js

$resolve minimist --from /some/where/index.js
minimist resolve to /some/where/node_modules/minimist/index.js