@git-filesystem/gitlab
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

@git-filesystem/gitlab

This package contains the GitLab implementation used by the git-filesystem npm package.

Use this to read & write specifically to GitLab repositories only; else use the git-filesystem package to write to repositories hosted with multiple cloud providers.

This package exposes methods for:

  • Creating a repository

  • Deleting a repository

  • Searching for repositories

  • Creating a file

  • Overwriting a file

  • Deleting a file

  • Creating tags

  • Reading files from tags

Installation

npm install @git-filesystem/gitlab

Example Usage

import { GitLabClient } from "@git-filesystem/gitlab";

const gitHubClient = new GitLabClient("gitlab-username", "access-token", "user-agent-name");

const gitHubRepository = gitHubClient.getRepository("repository-name");

let fileContent = await gitHubRepository.readFile("file/path.txt");
fileContent += "\n\nNewData";

await gitHubRepository.updateFile("file/path.txt", fileContent);

License

@git-filesystem/gitlab is licensed under the ISC License.

Readme

Keywords

none

Package Sidebar

Install

npm i @git-filesystem/gitlab

Weekly Downloads

1,525

Version

0.0.6

License

ISC

Unpacked Size

1.43 MB

Total Files

69

Last publish

Collaborators

  • tobysmith568