0.0.1 • Published 4 years ago

github-edit v0.0.1

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

github-edit

Github Content CURD API.

yarn add github-edit

Example

import {
  login,
  unLogin,
  getContentTree,
  createFile,
  removeFile,
  readFile
} 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. unLogin
unLogin()

start

yarn install
yarn start

yarn dev

Author: saber2pr