Socket
Book a DemoInstallSign in
Socket

github-kv

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github-kv

GitHub as a Key Value store.

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

GitHub Key-Value Store

npm version

GitHub as a Key Value store.

한국어 안내

Installation

npm install -g github-kv

Caveat

When create new Personal Access Token, You should check only repo.

Usage

Example key-value store

please show store.json in this repo.

{
    "ACCESS_KEY": "HELLO",
    "SECRET_KEY": "WORLD"
}

Global CommandLine Interface

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

Module in Node.js

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 })

Keywords

key management

FAQs

Package last updated on 09 Aug 2019

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