Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jjgonecrypto/node-keyboard-github
github api utility for node-keyboard
https://github.com/jjgonecrypto/node-keyboard-github
github-api node-keyboard
Last synced: 21 days ago
JSON representation
github api utility for node-keyboard
- Host: GitHub
- URL: https://github.com/jjgonecrypto/node-keyboard-github
- Owner: jjgonecrypto
- License: mit
- Created: 2017-05-20T22:51:58.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-11-01T20:10:40.000Z (about 5 years ago)
- Last Synced: 2024-09-26T07:39:03.159Z (about 2 months ago)
- Topics: github-api, node-keyboard
- Language: JavaScript
- Size: 8.79 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# node-keyboard-github
[![npm version](https://badge.fury.io/js/node-keyboard-github.svg)](https://badge.fury.io/js/node-keyboard-github)
GitHub search plugin for node-keyboard
![](https://github.com/Giphy/GiphyAPI/raw/master/api_giphy_header.gif)
## Installation
### As Global
If you installed node-keyboard globally, then install this plugin via `npm i -g node-keyboard-github`Then start node keyboard via `node-keyboard`, and import this plugin via `const github = requireg('node-keyboard-github')`
### As Local
If instead you cloned node-keyboard, then install locally in that folder via `npm i node-keyboard-github`Then start node keyboard via `node keyboard` and import this plugin via `const github = require('node-keyboard-github')`
## Configuration
The following environment variables need to be added:
* `SATORI_ACCESS_TOKEN` see [https://developer.satori.com](https://developer.satori.com)
* `GITHUB_ACCESS_TOKEN` see [GitHub docs](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/#creating-a-token)## API
* `starredRepos()` returns a subscription with `{ user, repository, languages }` for every public star action on GitHub
* `sourceSearch(query: String)` returns a subscription with `{ user, repository, items }` for every public star action on GitHub for a repository containing the given `query`## Examples
* [starred repositories by language](./examples/01_starredlangs.js)
* [search content from starred repositories](./examples/02_starredcontent.js)