1.1.0 • Published 7 years ago

gitlab-fetch v1.1.0

Weekly downloads
6
License
MIT
Repository
gitlab
Last release
7 years ago

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());
}
1.1.0

7 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.3.1-local

8 years ago

0.3.0

8 years ago

0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.0

8 years ago