Skip to content

NPM Wrapper that supports install http git repositories without embedding passwords in package.json

License

Notifications You must be signed in to change notification settings

with-shrey/gitpm-node

Repository files navigation

GitPM-Node is a CLI tool that can enable you to install private git packages from npm without storing username and password in package.json


Disclaimer

☠️ Use this tool only within a docker container

We havent tested it on physical machines

Installation

npm install -g gitpm-node@latest

Usage

  1. Install all dependencies
gitpm-node install
  1. Install a new git/npm package
gitpm-node install --save git+https://<DOMAIN>/path/to/package.git
  1. Normal npm dependencies can also be installed with options
gitpm-node install --save <npm package name>

the above commands will prompt for git credentials and create an auth.json in the same directory as package.json containing the git http credentials

In case if auth.json exists, it will be used without any prompt (Usefull incase of CI/CD)

  • Example auth.json
{
  "git.domain.com": {
    "username": "<username / token name>",
    "password": "<password / personal token>"
  }
}

About

NPM Wrapper that supports install http git repositories without embedding passwords in package.json

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published