Socket
Socket
Sign inDemoInstall

@siberianmh/gitlab-api

Package Overview
Dependencies
2
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @siberianmh/gitlab-api

A minimal GitLab API wrapper


Version published
Weekly downloads
0
decreased by-100%
Maintainers
2
Install size
623 kB
Created
Weekly downloads
 

Readme

Source

GitLab API

🚦 This project implements API endpoints what are we would to use itself, if you need other API endpoints, feel free to contribute or open issue

Installing

yarn add @siberianmh/gitlab-api
# or
npm install @siberianmh/gitlab-api

Usage

import { GitLab } from '@siberianmh/gitlab-api'

const gitlab = new GitLab({
  hostname: 'https://gitlab.example.com',
  token: 'XXXXX',
})

async function main() {
  const { data } = await gitlab.mergeRequest.getMergeRequest({
    project_id: 1,
    merge_request_iid: 1,
  })

  console.log(data)
}

main().catch((err) => {
  console.log(err)
  process.exit(1)
})

License

MIT

FAQs

Last updated on 20 Jan 2021

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