mirror of
https://github.com/jdalrymple/gitbeaker.git
synced 2026-01-18 15:55:30 +00:00
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
Description
Languages
TypeScript
98.7%
JavaScript
1.1%
Shell
0.1%