Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 324 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 324 Bytes

gitlab api v4

Install

yarn add gitlab-api-v4

Usage

const Gitlab = require('gitlab-api-v4');

const gitlab = new Gitlab({
  api: 'https://gitlab.com/api/v4',
  privateToken: 'your private token'
});

gitlab.projects.list().then(res => {
  console.log(res)
}).catch(e => {
  console.log(e)
})