1.0.0 • Published 7 years ago
ganjiang-gitlab v1.0.0
Ganjiang-GitLab
Debug the output
set the DEBUG = gitlab:* by export DEBUG = gitlab:*, ganjiang will log out debug info
create gitlab client
const GitLab = require('ganjiang-gitlab')
const gitlab = new GitLab({
host: '127.0.0.1', // gitlab host
token: 'xxxxx', // access token
version: 'v3',
})get projects
const projects = await gitlab.getProjects()
console.log(projects) // show the following dataRun Tests
- set your
access tokenin test folderutils.js, and run
npm test1.0.0
7 years ago