1.4.0 • Published 6 years ago

simple-gitlab-api v1.4.0

Weekly downloads
4
License
ISC
Repository
github
Last release
6 years ago

simple-gitlab-api

npm version Build Status

NPM

A simple GitLab API library for Node.js using simple request-promise calls

Install

# Install from npm
npm install simple-gitlab-api

Usage in Node.js

var gitlab = require('simple-gitlab-api');

gitlab.get('/groups').then(function(groups) {
  for (var i = 0; i < groups.length; i++)
    console.log(groups[i].name);
});

Environment Variables

  • GITLAB_URL - the url to the GitLab server, e.g. https://gitlab.mycompany.com
  • GITLAB_API_PREFIX - the API endpoint prefix including the API version, e.g. /api/v4
  • GITLAB_API_TOKEN - the access token to the API passed into the header, e.g. (as used in curl):
curl --request GET --header 'PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK' 'https://gitlab.example.com/api/v4/projects/13083/repository/files/app%2Fmodels%2Fkey%2Erb/raw?ref=master'
1.4.0

6 years ago

1.3.0

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago