Socket
Socket
Sign inDemoInstall

gitclone

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gitclone - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

lib/gitclone.js

4

bin/cli.js

@@ -16,3 +16,3 @@ #!/usr/bin/env node

var spawn = require('child_process').spawn
var clone = require('../lib/clone');
var gitclone = require('../lib/gitclone');
var argv = require('minimist')(process.argv.slice(2));

@@ -25,3 +25,3 @@

var flags = clone(repo, dest, branch, ssh)[0];
var flags = gitclone(repo, dest, branch, ssh)[0];

@@ -28,0 +28,0 @@ var proc = spawn('git', flags, {

@@ -0,1 +1,7 @@

## v1.0.3 / November 4, 2014
- my style-guide driven changes at all
- move `test.js` to `test/test.js`
- add `preferGlobal: true` in package.json
- add engines in package.json
## v1.0.2 / October 30, 2014

@@ -2,0 +8,0 @@ - again fix travis.yml, failing because of v0.10 version

@@ -16,7 +16,7 @@ /**

var Promise = require('native-or-another');
var clone = require('./lib/clone');
var gitclone = require('./lib/gitclone');
module.exports = function gitclone(repository, destination, branch, ssh) {
module.exports = function gitClone(repository, destination, branch, ssh) {
var args = [].slice(arguments,0)
var flags = clone(repository, destination, branch, ssh)[0];
var flags = gitclone(repository, destination, branch, ssh)[0];

@@ -23,0 +23,0 @@ return new Promise(function(resolve, reject) {

{
"name": "gitclone",
"version": "1.0.2",
"description": "Clone a Github repository with only `username/repo` and support options",
"version": "1.0.3",
"description": "Clone a Github repository with only `username/repo`. Support CLI.",
"main": "index.js",
"scripts": {
"lint": "jshint ./**/*.js",
"test": "node test.js"
"test": "node test/test.js"
},

@@ -22,3 +22,9 @@ "author": {

"git",
"cli",
"support",
"helper",
"github",
"utils",
"utility",
"util",
"clone",

@@ -39,5 +45,10 @@ "repo",

}],
"engines": {
"node": ">= 0.10.0",
"npm": ">= 1.4.28"
},
"bin": {
"gitclone": "bin/cli.js"
}
},
"preferGlobal": "true"
}

@@ -21,3 +21,3 @@ # gitclone [![NPM version][npmjs-shields]][npmjs-url] [![Build Status][travis-img]][travis-url] [![Dependency Status][depstat-img]][depstat-url]

## Use cases
## CLI Usage

@@ -32,3 +32,17 @@ ```

## Usage as module
```js
var gitclone = require('./index');
var assert = require('assert');
var clone = gitclone('tunnckoCore/week-seconds')
clone
.then(function(res) {
//=> res == [command, repository, destination, branch, ssh]
assert(res[1] === 'tunnckoCore/week-seconds') //repository
})
.catch(console.error)
```
## Authors & Contributors [![author tips][author-gittip-img]][author-gittip]

@@ -35,0 +49,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc