ganjiang-gitlab

1.0.0 • Public • Published

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 token in test folder utils.js, and run
npm test

Readme

Keywords

Package Sidebar

Install

npm i ganjiang-gitlab

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

3.46 kB

Total Files

4

Last publish

Collaborators

  • taozhi.tz