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