@saber2pr/github-edit

0.0.4 • Public • Published

@saber2pr/github-edit

Github Content CURD API.

yarn add @saber2pr/github-edit

Example

import {
  login,
  unLogin,
  getContentTree,
  createFile,
  removeFile,
  readFile,
  getCommit
} from "@saber2pr/github-edit"

// 1. login
login(username, password)

// 2. content tree
getContentTree(repo)

// 3. createFile
createFile(repo, path, commit)

// 4. removeFile
removeFile(repo, path, commit)

// 5. readFile
readFile(repo, path)

// 6. get Commit Info
getCommit(repo, path)

// 7. unLogin
unLogin()

start

yarn install
yarn start

yarn dev

Author: saber2pr

Readme

Keywords

none

Package Sidebar

Install

npm i @saber2pr/github-edit

Weekly Downloads

0

Version

0.0.4

License

ISC

Unpacked Size

23.4 kB

Total Files

29

Last publish

Collaborators

  • saber2pr