git archive --remote wrapper
$ npm install @absolunet/git-archive
const gitArchive = require('@absolunet/git-archive');
gitArchive.download('git@github.com:absolunet/node-git-archive.git').then((dir) => {
console.log(dir);
});
Returns a Promise
with the path of the downloaded archive
Required
Type: String
Repo url as specified by git-archive#remote
Type: String
Default: master
The tree or commit to produce an archive for as specified by git-archive#tree-ish
Type: String
Default: zip
Format of the resulting archive as specified by git-archive#format
Type: Boolean
Default: true
Extract the archive
Type: String
Default: tmp
Path and name of the archive file or path of the extracted archive. If not specified will be put in a temporary path.
MIT © Absolunet