@saber2pr/github-edit
v0.0.4
Published
Github Content CURD API.
Downloads
3
Readme
@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