download-git-repo-cli
Advanced tools
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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
3470
3
1
+ Added@sindresorhus/is@0.7.0(transitive)
+ Addedansi-regex@4.1.1(transitive)
+ Addedansi-styles@3.2.1(transitive)
+ Addedarchive-type@4.0.0(transitive)
+ Addedcacheable-request@2.1.4(transitive)
+ Addedcamelcase@5.3.1(transitive)
+ Addedcliui@5.0.0(transitive)
+ Addedclone-response@1.0.2(transitive)
+ Addedcolor-convert@1.9.3(transitive)
+ Addedcolor-name@1.1.3(transitive)
+ Addedcontent-disposition@0.5.4(transitive)
+ Addeddecode-uri-component@0.2.2(transitive)
+ Addeddecompress-response@3.3.0(transitive)
+ Addeddownload@7.1.0(transitive)
+ Addeddownload-git-repo@3.0.2(transitive)
+ Addedemoji-regex@7.0.3(transitive)
+ Addedext-list@2.2.2(transitive)
+ Addedext-name@5.0.0(transitive)
+ Addedfile-type@4.4.08.1.0(transitive)
+ Addedfind-up@3.0.0(transitive)
+ Addedfrom2@2.3.0(transitive)
+ Addedget-caller-file@2.0.5(transitive)
+ Addedgot@8.3.2(transitive)
+ Addedhttp-cache-semantics@3.8.1(transitive)
+ Addedinto-stream@3.1.0(transitive)
+ Addedis-fullwidth-code-point@2.0.0(transitive)
+ Addedis-plain-obj@1.1.0(transitive)
+ Addedjson-buffer@3.0.0(transitive)
+ Addedkeyv@3.0.0(transitive)
+ Addedlocate-path@3.0.0(transitive)
+ Addedlowercase-keys@1.0.0(transitive)
+ Addedmime-db@1.53.0(transitive)
+ Addedmimic-response@1.0.1(transitive)
+ Addednormalize-url@2.0.1(transitive)
+ Addedp-cancelable@0.4.1(transitive)
+ Addedp-event@2.3.1(transitive)
+ Addedp-finally@1.0.0(transitive)
+ Addedp-is-promise@1.1.0(transitive)
+ Addedp-limit@2.3.0(transitive)
+ Addedp-locate@3.0.0(transitive)
+ Addedp-timeout@2.0.1(transitive)
+ Addedp-try@2.2.0(transitive)
+ Addedpath-exists@3.0.0(transitive)
+ Addedprepend-http@2.0.0(transitive)
+ Addedquery-string@5.1.1(transitive)
+ Addedrequire-directory@2.1.1(transitive)
+ Addedrequire-main-filename@2.0.0(transitive)
+ Addedresponselike@1.0.2(transitive)
+ Addedrimraf@3.0.2(transitive)
+ Addedset-blocking@2.0.0(transitive)
+ Addedsort-keys@1.1.22.0.0(transitive)
+ Addedsort-keys-length@1.0.1(transitive)
+ Addedstrict-uri-encode@1.1.0(transitive)
+ Addedstring-width@3.1.0(transitive)
+ Addedstrip-ansi@5.2.0(transitive)
+ Addedurl-parse-lax@3.0.0(transitive)
+ Addedwhich-module@2.0.1(transitive)
+ Addedwrap-ansi@5.1.0(transitive)
+ Addedy18n@4.0.3(transitive)
+ Addedyargs@14.2.3(transitive)
+ Addedyargs-parser@15.0.3(transitive)
- Removedansi-regex@2.1.1(transitive)
- Removedcamelcase@2.1.1(transitive)
- Removedcapture-stack-trace@1.0.2(transitive)
- Removedcliui@3.2.0(transitive)
- Removedcode-point-at@1.1.0(transitive)
- Removedcreate-error-class@3.0.2(transitive)
- Removeddownload@5.0.3(transitive)
- Removeddownload-git-repo@1.1.0(transitive)
- Removedgot@6.7.1(transitive)
- Removedinvert-kv@1.0.0(transitive)
- Removedis-fullwidth-code-point@1.0.0(transitive)
- Removedis-redirect@1.0.0(transitive)
- Removedlcid@1.0.0(transitive)
- Removedminimist@1.2.8(transitive)
- Removedmkdirp@0.5.6(transitive)
- Removednumber-is-nan@1.0.1(transitive)
- Removedos-locale@1.4.0(transitive)
- Removedprepend-http@1.0.4(transitive)
- Removedrimraf@2.7.1(transitive)
- Removedstring-width@1.0.2(transitive)
- Removedstrip-ansi@3.0.1(transitive)
- Removedunzip-response@2.0.1(transitive)
- Removedurl-parse-lax@1.0.0(transitive)
- Removedwindow-size@0.1.4(transitive)
- Removedwrap-ansi@2.1.0(transitive)
- Removedy18n@3.2.2(transitive)
- Removedyargs@3.32.0(transitive)
Updateddownload-git-repo@^3.0.2
Updatedyargs@^14.2.0