GitHub as a Key Value store.
npm install -g github-kv
When create new Personal Access Token, You should check only repo.
please show store.json in this repo.
{
"ACCESS_KEY": "HELLO",
"SECRET_KEY": "WORLD"
}
in Terminal. extract is optional
# gh-kv --token <GitHub Token> \
# --owner <Owner or Organization> \
# --repo <REPO_NAME> \
# --file <TARGET_FILENAME> \
# --extract <OUTPUT_FILENAME> \
# --webhook <WEBHOOK_POST_URL>
gh-kv --token <GitHub Token> --owner changjoo-park --repo kv --file store.json --extract key.json
extract is optional same as global CLI
const getGitHubStore = require('github-kv')
// Promise
getGitHubStore({ token, owner, repo, file, extract })
.then(store => {})
.catch(error => {})
// async - await
const store = await getGitHubStore({ token, owner, repo, file, extract })