Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 337 Bytes

README.md

File metadata and controls

17 lines (14 loc) · 337 Bytes

getGitlabCfg

download gitlab repo given file for some use, for example configure

Usage

const getCfg = require('getgitlabcfg');
getCfg({
  token: 'xxx', //gitlab token
  host: 'http://git.xxx.com', //gitlab host
  projectId: 'xxxx',
  src: 'xxx/xxx/xxx.js', //repo file path
  branch: 'master',
  dist: './config.js'
});