New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

gtni

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gtni

Install your all npm dependencies recursively with gtni while you are doing git clone, fetch or pull

latest
Source
npmnpm
Version
1.7.0
Version published
Maintainers
1
Created
Source

gtni

Install your npm dependencies recursively with gtni as soon you clone, fetch or pull a git repo.

version Downloads Travis branch Greenkeeper badge semantic-release

gtni automatically choose right package manager for a git repository based on lock file in a directory with package.json.

Installation

[sudo] npm install -g gtni
# or
[sudo] yarn global add gtni

Usage

$gtni --help

Usage: gtni <command> [options]

Commands:
  pull   git pull and install npm dependencies
  fetch  git fetch and install npm dependencies
  clone  clone a git repository and install npm dependencies

Options:
  -h, --help     Show help  [boolean]
  -v, --version  Show version number  [boolean]

Examples:
  [NODE_ENV=<env>] gtni pull [git-options]  git pull and install npm packages



# Sub command options

$ gtni <command> -h
Options:
  -h, --help, --help  Show help  [boolean]
  --branch, -b        remote branch name to clone  [string] [default: false]
  --debug, -d         Show debug output  [boolean] [default: false]
  -v, --version       Show version number  [boolean]

  Note: here you can pass any flags for the corresponding git command

I need your help to improve this module. Please send me your valuable suggestions and advices. I am all ears.

Todo List

  • Very basic stage of pull support
  • Pull support for most used git pull options
  • Fetch support for most used git fetch options
  • Support for git clone
  • NODE_ENV support for npm/yarn install
  • Show warnings during dependencies installation
  • Support for read and install dependencies when project has multiple package.json files
  • Install npm modules diffing git tree for various branch after doing git operations supported by gtni
  • Add support to pass custom NODE_ENV values for npm install
  • Choose right package manager automatically for a repository

Keywords

git

FAQs

Package last updated on 04 Jan 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts