Download Gitlab Repository using Gitlab Private Tokens
- NodeJS v8.9.1 or latest LTS
$ npm i
$ GITLAB_PRIVATE_TOKEN=YOUR_PRIVATE_TOKEN NODE_DEBUG=request GITLAB_REPO_URL=YOUR_GITLAB_REPO_URL node index.js
GITLAB_PRIVATE_TOKEN
: Private token https://docs.gitlab.com/ce/user/profile/personal_access_tokens.htmlNODE_DEBUG
: Set this torequest
if you want to see the request coming. See https://github.com/request/request#debuggingGITLAB_REPO_URL
: Your gitlab private hosthttps
DEST_DIR
: Directory destination, default todownload
folderOUT_EXTENSION
: Desired extension, supported extensionstar
,zip
,.tar.bz2
DOWNLOAD_CONCURRENCY
: Number of concurrent requests to download repository, default to1
2017-2018 (c) Rheza Satria
Made with :love: in JKT