1.0.0 • Published 8 years ago
ganjiang-gitlab
Licence
MIT
Version
1.0.0
Deps
2
Size
3 kB
Vulns
25
Weekly
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 data
Run Tests
- set your
access tokenin test folderutils.js, and run
npm test