Socket
Socket
Sign inDemoInstall

download-git-repo-cli

Package Overview
Dependencies
2
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.0 to 3.0.2

72

index.js

@@ -1,2 +0,2 @@

var download = require("download-git-repo");
var download = require('download-git-repo')

@@ -7,3 +7,3 @@ /**

exports.cli = cli;
exports.cli = cli

@@ -14,21 +14,21 @@ /**

function help() {
console.log("");
console.log("Usage");
console.log(" $ download-git-repo <url>");
console.log(" $ download-git-repo <url> <directory>");
console.log(" $ download-git-repo <url> <directory> --clone");
console.log("");
console.log("Example");
console.log(" $ download-git-repo -h");
console.log(" $ download-git-repo flipxfx/download-git-repo-fixture");
console.log(" $ download-git-repo flipxfx/download-git-repo-fixture test/tmp");
console.log(" $ download-git-repo gitlab:flipxfx/download-git-repo-fixture");
console.log(" $ download-git-repo gitlab:custom.com:flipxfx/download-git-repo-fixture");
console.log(" $ download-git-repo bitbucket:flipxfx/download-git-repo-fixture#my-branch test/tmp --clone");
console.log("");
console.log("Options");
console.log(" -h, --help Show help");
console.log(" -c, --clone Use git clone instead of an http download.");
console.log("");
function help () {
console.log('')
console.log('Usage')
console.log(' $ download-git-repo <url>')
console.log(' $ download-git-repo <url> <directory>')
console.log(' $ download-git-repo <url> <directory> --clone')
console.log('')
console.log('Example')
console.log(' $ download-git-repo -h')
console.log(' $ download-git-repo flippidippi/download-git-repo-fixture')
console.log(' $ download-git-repo flippidippi/download-git-repo-fixture test/tmp')
console.log(' $ download-git-repo gitlab:flippidippi/download-git-repo-fixture')
console.log(' $ download-git-repo gitlab:custom.com:flippidippi/download-git-repo-fixture')
console.log(' $ download-git-repo bitbucket:flippidippi/download-git-repo-fixture#my-branch test/tmp --clone')
console.log('')
console.log('Options')
console.log(' -h, --help Show help')
console.log(' -c, --clone Use git clone instead of an http download.')
console.log('')
}

@@ -41,21 +41,21 @@

function cli() {
var argv = require("yargs")
.boolean("c")
.boolean("h")
.alias("c","clone")
.alias("h","help")
.argv;
function cli () {
var argv = require('yargs')
.boolean('c')
.boolean('h')
.alias('c', 'clone')
.alias('h', 'help')
.argv
if(argv.h) return help();
if (argv.h) return help()
var src = argv._[0],
dest = argv._[1] || process.cwd(),
options = {};
var src = argv._[0]
var dest = argv._[1] || process.cwd()
var options = {}
if(argv.c) options.clone = true;
if (argv.c) options.clone = true
download(src, dest, options, function(err) {
if(err) console.log(err);
});
download(src, dest, options, function (err) {
if (err) console.log(err)
})
}
{
"name": "download-git-repo-cli",
"version": "1.1.0",
"version": "3.0.2",
"license": "MIT",
"repository": "git://github.com/flipxfx/download-git-repo-cli",
"repository": "gitlab:flippidippi/download-git-repo-cli",
"description": "Download and extract a git repository (GitHub, Gitlab, Bitbucket) from node CLI.",

@@ -11,2 +11,3 @@ "preferGlobal": true,

"github",
"gitlab",
"bitbucket",

@@ -23,8 +24,16 @@ "repo",

},
"scripts": {},
"scripts": {
"lint": "standard --verbose | snazzy",
"lint:fix": "standard --verbose --fix | snazzy",
"precommit": "npm run lint"
},
"dependencies": {
"download-git-repo": "^1.0.1",
"yargs": "^3.31.0"
"download-git-repo": "^3.0.2",
"yargs": "^14.2.0"
},
"devDependencies": {}
"devDependencies": {
"husky": "^3.0.8",
"snazzy": "^8.0.0",
"standard": "^14.3.1"
}
}
# download-git-repo-cli
Download and extract a git repository (GitHub, Bitbucket) from node CLI.
> See [download-git-repo](https://github.com/flipxfx/download-git-repo) for the API and issue tracker.
> See [download-git-repo](https://gitlab.com/flippidippi/download-git-repo) for the API and issue tracker.

@@ -25,7 +25,7 @@ ## Install

$ download-git-repo -h
$ download-git-repo flipxfx/download-git-repo-fixture
$ download-git-repo flipxfx/download-git-repo-fixture test/tmp
$ download-git-repo gitlab:flipxfx/download-git-repo-fixture
$ download-git-repo gitlab:custom.com:flipxfx/download-git-repo-fixture
$ download-git-repo bitbucket:flipxfx/download-git-repo-fixture#my-branch test/tmp --clone
$ download-git-repo flippidippi/download-git-repo-fixture
$ download-git-repo flippidippi/download-git-repo-fixture test/tmp
$ download-git-repo gitlab:flippidippi/download-git-repo-fixture
$ download-git-repo gitlab:custom.com:flippidippi/download-git-repo-fixture
$ download-git-repo bitbucket:flippidippi/download-git-repo-fixture#my-branch test/tmp --clone

@@ -32,0 +32,0 @@ Options

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc