npmwd

Open the npm package URL that matches your shell's current working directory

Downloads
6
Stars
4
Committers
1

npmwd

Open the npm package URL that matches your shell's current working directory.

Install it

npm install npmwd --global

Use it

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

Use it faster

Put this in your .bashrc or your .zshrc or whatever:

alias n=npmwd