NPM support for checking if a package already has been installed and docs