gitbeaker/README.md
2017-06-21 12:17:39 -04:00

1.2 KiB

node-gitlab-api

--

GitLab API Nodejs library. It wraps the HTTP v4 api library described here.

Install

# Install from npm
npm install gitlab

Usage

URL to your GitLab instance should not include /api/v4 path.

// Connection
const GitlabAPI = require('gitlab-api')({
  url:   'http://example.com' // Defaults to http://gitlab.com
  token: 'abcdefghij123456'
})
  

// Listing users
let users = await gitlab.users.all();

console.log(users);

// Listing projects
let projects = await gitlab.projects.all();

console.log(projects);

Contributors

This started off as a fork from node-gitlab but I ended up rewriting 90% of the code. Here are the original work's contributers.

License

MIT

Changelog


  • Initial release, still missing a testing suite, travis triggers and overall review

Initial Release (2017-06-21)