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 0.0.2 to 0.2.1

48

index.js

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

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

@@ -14,19 +14,20 @@ /**

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 zeke/download-github-repo-fixture');
console.log(' $ download-git-repo zeke/download-github-repo-fixture test/tmp');
console.log(' $ download-git-repo gitlab:flipxfx/download-gitlab-repo-fixture');
console.log(' $ download-git-repo bitbucket:flipxfx/download-bitbucket-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('');
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("");
}

@@ -40,7 +41,7 @@

function cli() {
var argv = require('yargs')
.boolean('c')
.boolean('h')
.alias('c','clone')
.alias('h','help')
var argv = require("yargs")
.boolean("c")
.boolean("h")
.alias("c","clone")
.alias("h","help")
.argv;

@@ -56,3 +57,2 @@

console.log(src)
download(src, dest, options, function(err) {

@@ -59,0 +59,0 @@ if(err) console.log(err);

{
"name": "download-git-repo-cli",
"version": "0.0.2",
"version": "0.2.1",
"license": "MIT",

@@ -24,3 +24,3 @@ "repository": "git://github.com/flipxfx/download-git-repo-cli",

"dependencies": {
"download-git-repo": "^0.1.2",
"download-git-repo": "^0.2.1",
"yargs": "^3.31.0"

@@ -27,0 +27,0 @@ },

@@ -25,6 +25,7 @@ # download-git-repo-cli

$ download-git-repo -h
$ download-git-repo zeke/download-github-repo-fixture
$ download-git-repo zeke/download-github-repo-fixture test/tmp
$ download-git-repo gitlab:flipxfx/download-gitlab-repo-fixture
$ download-git-repo bitbucket:flipxfx/download-bitbucket-repo-fixture#my-branch test/tmp --clone
$ 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

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

Sorry, the diff of this file is not supported yet

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