New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@git-filesystem/github

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@git-filesystem/github

The GitHub implementation used by the git-filesystem package. Use this to read & write specifically to GitHub repositories only.

latest
Source
npmnpm
Version
0.0.6
Version published
Weekly downloads
13K
117.31%
Maintainers
1
Weekly downloads
 
Created
Source

@git-filesystem/github

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

Use this to read & write specifically to GitHub 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/github

Example Usage

import { GitHubClient } from "@git-filesystem/github";

const gitHubClient = new GitHubClient("github-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/github is licensed under the ISC License.

FAQs

Package last updated on 03 Mar 2024

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