set the DEBUG = gitlab:*
by export DEBUG = gitlab:*
, ganjiang will log out debug info
const GitLab = require('ganjiang-gitlab')
const gitlab = new GitLab({
host: '127.0.0.1', // gitlab host
token: 'xxxxx', // access token
version: 'v3',
})
const projects = await gitlab.getProjects()
console.log(projects) // show the following data
- set your
access token
in test folderutils.js
, and run
npm test