Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

gitlab-api-v4

cyyjs19MIT0.1.4TypeScript support: included

gitlab api v4

gitlab, gitlab api, api v4, git

readme

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)
})