New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

gitlab-download

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gitlab-download

Download and extract a Gitlab repository from node.

latest
Source
npmnpm
Version
2.0.0
Version published
Weekly downloads
69
590%
Maintainers
1
Weekly downloads
 
Created
Source

Node.js - gitlab-download

Easily download Gitlab repos without any external dependencies such as Git, Tar, Unzip, etc.

Installation

npm install gitlab-download

Usage

instanciate new GitlabDownload(gitlabUrl, token)

Instanciate gitlab-download

var GitlabDownload = require('gitlab-download').default;
var gitlab = new GitlabDownload('https://mysgitlab.com', 'aze12233zae');
  • gitlabUrl:
    • a Github URL string such as https://mysgitlab.com
  • token: You private token.

download(params)

Downloads the latest copy of some Gitlab reference (branch, tag, or commit), or the master branch by default.

  • params: Object of param:
    • remote: path of project (sample:eyolas/gitlab-download) (required)
    • dest: The output directory.
    • ref: Gitlab reference (branch, tag, or commit). Default : master
    • downloadOptions: Options for download api

Returns both a Promise<Buffer> and a Duplex stream with additional events.

Example:

var GitlabDownload = require('gitlab-download');
var gitlab = new GitlabDownload('https://mysgitlab.com', 'aze12233zae');
gitlab.download({remote: 'eyolas/gitlab-download'});

License

(WTFPL License)

Keywords

download

FAQs

Package last updated on 17 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts