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

gitme2

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gitme2

install git repos via script

latest
Source
npmnpm
Version
1.0.4
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

Install Git repos using a script. This app installs gits from an array, and places them in desired location. After each installation, npm link is performed on a repo so make sure it is an npm package. After you can add it to your package.json for intellisense ("rep-name":"file:gits/rep-name").    

Install

$ npm i gitme2

   

Why use it ?

  • Install private gits
  • Automation of git installs
  • Not an npm public repo.
  • Add to preinstall script
  • Call it on specific process.env
  • Npm module wont install? Use the git repo and then npm link it as local!    

Example usage:

More examples in ./example.js

 const GitMe = require('gitme2')()

    /** 
     * GitMe.exampleRepo << following this setup
     * recommendations: `do not include your "GitMe installs" in the same dir as your project!, treat it as ./local_node_modules or ./gits` for example.
    */
    const opts = {
        gitRepos: {

            // replace with existing repositories !
            ['projectName']: {
                exec: `git clone git@bitbucket.org/authourName/projectName.git`, 
                folder: `./gits/projectName` 
            },

            ['projectName2']: {
                exec: `git clone https://github.com/authourName/projectName2.git`,  
                folder: `./gits/projectName2` 
            },
            // and so on
        }
    }

    const git = new GitMe(opts)
    const results = await git.install()
    // const relinked = await git.relink() // if npm syslink got missing, try to relink them 

   

API

METHODSRETURNDESCRIPTION
install()promiseStart installing gitRepos, return results after all complete, or return errors
relink()promisewhen already installed, your repos and syslink got missing? You can use it to relink them!
 
 

Contact

Have questions, or would like to submit feedback, contact eaglex

Keywords

git

FAQs

Package last updated on 06 Jul 2020

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