Open the npm package URL that matches your shell's current working directory.
npm install npmwd --global
Run npmwd
with no arguments to infer package name from package.json
in the current working directory:
cd my-package
npmwd
# https://npmjs.com/package/my-package
Or specify the name of a package to view:
cd ~/anywhere
npmwd supertest
# https://npmjs.com/package/supertest
Put this in your .bashrc
or your .zshrc
or whatever:
alias n=npmwd