git (github) repository as npm dependency

{
  "name": "node-sample-app",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "node app.js"
  },
  "dependencies": {
    "private-module1": "git+https://github.com/marioosh-net/private-module1",
    "private-module2": "git+ssh://github.com/marioosh-net/private-module2#master"
  }
}

more info here

Leave a Reply

Your email address will not be published. Required fields are marked *