Get the directory of globally installed packages and binaries
Allows you to log in to NPM without STDIN, STDOUT. Use in places like CI build systems. Also creates/modifies entries in the ~/.npmrc file for authentication.
Read user name, email and URL from .npmrc or .gitconfig
Retrieves the node version from the package.json or .nvmrc file