npm-run-path
Get your PATH prepended with locally installed binaries
module-details-from-path
Extract the Node.js module details like name and base path given an abosulte path to a file inside the module
pkg-dir
Find the root directory of a Node.js project or npm package
resolve-dir
Resolve a directory that is either local, global or in the user's home directory.