Socket
Socket
Sign inDemoInstall

simple-gitlab-api

Package Overview
Dependencies
52
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-gitlab-api

A simple GitLab API library for Node.js using simple request-promise calls


Version published
Maintainers
1
Weekly downloads
4

Weekly downloads

Readme

Source

simple-gitlab-api

npm version Build Status

NPM

A simple GitLab API library for Node.js using simple request-promise calls

Install

# Install from npm
npm install simple-gitlab-api

Usage in Node.js

var gitlab = require('simple-gitlab-api');

gitlab.get('/groups').then(function(groups) {
  for (var i = 0; i < groups.length; i++)
    console.log(groups[i].name);
});

Environment Variables

  • GITLAB_URL - the url to the GitLab server, e.g. https://gitlab.mycompany.com
  • GITLAB_API_PREFIX - the API endpoint prefix including the API version, e.g. /api/v4
  • GITLAB_API_TOKEN - the access token to the API passed into the header, e.g. (as used in curl):
curl --request GET --header 'PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK' 'https://gitlab.example.com/api/v4/projects/13083/repository/files/app%2Fmodels%2Fkey%2Erb/raw?ref=master'

Keywords

FAQs

Last updated on 24 Jan 2018

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc