
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
node-gitlab-api
Advanced tools
Full NodeJS implementation of the GitLab API. Supports Promises, Async/Await.
GitLab API Nodejs library. It wraps the HTTP v4 api library described here.
# Install from npm
npm install node-gitlab-api
URL to your GitLab instance should not include /api/v4
path.
// Connection with basic token
const GitlabAPI = require('node-gitlab-api')({
url: 'http://example.com', // Defaults to http://gitlab.com
token: 'abcdefghij123456'
})
// Connection with oauth token
const GitlabAPI = require('node-gitlab-api')({
url: 'http://example.com', // Defaults to http://gitlab.com
oauthToken: 'abcdefghij123456'
})
// Listing users
let users = await gitlab.users.all();
console.log(users);
// Listing projects
let projects = await gitlab.projects.all();
console.log(projects);
General rule about all the function parameters:
ie.
GitlabAPI.projects.create(projectId, {
//options defined in the gitlab api documentation
})
Although there are the offical docs for the API, i realised i should still explain the function calls in this library, so i wrote some up!
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.
MIT
1.0.12 (2017-07-30)
FAQs
Full NodeJS implementation of the GitLab API. Supports Promises, Async/Await.
The npm package node-gitlab-api receives a total of 7 weekly downloads. As such, node-gitlab-api popularity was classified as not popular.
We found that node-gitlab-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.