New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

sd-gitlab

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sd-gitlab

gitlab api

  • 0.1.1
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

gitlab

gitlab api 接口调用服务

Install

yarn add sd-gitlab

Use

Initialization

const GitLab = require('gitlab-api')

const gitLab = new GitLab({
  baseUrl: 'https://example.com',
  // gitlab个人令牌 https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html
  privateToken: '', 
  expires: 1 // 缓存天数
})

API

getAllProjects(options)

获取所有项目列表

options
参数类型描述示例
pickArray获取的属性列表['name']
filterObject过滤条件,对象值为正则{name: /regex/}
Example
gitLab.getAllProjects({
  pick: ['name', 'path_with_namespace'],
  filter: {
    path_with_namespace: /^namespace/
  }
}).then(data => {
  console.log(data)
})

FAQs

Package last updated on 16 Jul 2019

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc