gitbeaker/README.md
2017-06-23 12:13:45 -04:00

1.8 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.3 (2017-06-23)

  • Updating problems within the Milestone API

1.0.2 (2017-06-22)

  • Updating examples in readme
  • Adding dependancy badges
  • Removing unused test files

1.0.1 (2017-06-21)

  • Initial release
  • TODO: Tests, Examples