Last Updated: July 31, 2018
· milesmatthias

Share utilities with anyone via npm + git

npm has tons of great utilities to take advantage of and if you're constantly using the same ones or in a local script and want to share your script, write a module and allow others to install it as well.

However, if you don't want to publish your npm module for the entire world to see, push your code into a git repo that you control the access control to.

Then, if you access your git repo with ssh keys like we do, anyone with read access to the git repo can install your module like this:

npm install git+ssh://