Socket
Socket
Sign inDemoInstall

gitlab-fetch

Package Overview
Dependencies
17
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    gitlab-fetch

A GitLab API client using the [whatwg-fetch API](https://github.com/whatwg/fetch) (written in TypeScript).


Version published
Weekly downloads
4
decreased by-88.89%
Maintainers
1
Install size
1.21 MB
Created
Weekly downloads
 

Readme

Source

A GitLab API client using the whatwg-fetch API (written in TypeScript).

NPM

Currently implemented APIs

Usage

import { ProjectsApi, Config, Project, loadConfig } from 'gitlab-fetch';

async function run(): Project[] {
  const config: Config = {
    baseUrl: 'https://gitlab.com/api',
    auth: {
      privateToken: process.env.GITLAB_API_TOKEN,
    }
  };
  // Load from `~/.gitlab-fetchrc` (or similar, see https://www.npmjs.com/package/rc)
  // const config = loadConfig();
  const projectsApi = new ProjectsApi(config);
  return await projectsApi.getAll());
}

Keywords

FAQs

Last updated on 27 Apr 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