1.0.12 • Published 2 years ago

gitpm-node v1.0.12

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

GitPM Node · npm version PRs Welcome

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>"
  }
}
1.0.9

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.12

2 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago