Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 815 Bytes

README.md

File metadata and controls

30 lines (21 loc) · 815 Bytes

gitlab-api-wrapper

npm-version npm-downloads


The most comprehensive GitLab API, almost covers all GitLab API endpoints. Also, we provide an isomorphic API which can be used in both browser and Node.js environments.

Install

yarn add gitlab-api-wrapper

Usage

const GitlabApis = require('gitlab-api-wrapper');

const client = GitlabApis({
  // the GitLab url
  base_url: 'http://gitlab.alibaba-inc.com',
  private_token: '',
  timeout: 3000,
});

// return a promise object
const ret = client.projects.list({search: 'xx'});