Last Updated: February 25, 2016
·
12.53K
· finnpauls

Shortcut for installing github repos in npm

Want to install a package from github with npm?

You can use the shortcut

npm install <user>/<repo>

instead of

npm install https://github.com/<user>/<repo>/

Thanks to @brianlovesdata for pointing that out on twitter.

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
Did you know?

JavaScript on a page runs with the privileges of that origin. One altered library, tag manager, or snippet can read inputs, change what people see, and call your APIs as the user.

Security insights from Cside