gitbeaker/README.md
2017-06-22 15:03:14 -04:00

1.4 KiB

Dependency Status devDependency Status

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

1.0.1 (2017-06-21)

  • Initial release
  • TODO: Tests, Examples