https://github.com/jjgonecrypto/node-keyboard-mongo
MongoDB support for node-keyboard
https://github.com/jjgonecrypto/node-keyboard-mongo
mongodb music node-keyboard
Last synced: 2 months ago
JSON representation
MongoDB support for node-keyboard
- Host: GitHub
- URL: https://github.com/jjgonecrypto/node-keyboard-mongo
- Owner: jjgonecrypto
- License: mit
- Created: 2017-02-08T17:45:41.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-09-04T04:00:25.000Z (almost 6 years ago)
- Last Synced: 2025-09-23T04:31:00.380Z (9 months ago)
- Topics: mongodb, music, node-keyboard
- Language: JavaScript
- Size: 16.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# node-keyboard-mongo
[](https://badge.fury.io/js/)
MongoDB support for [node-keyboard](../node-keyboard)

## Installation
### As Global
If you installed node-keyboard globally, then install this plugin via `npm i -g node-keyboard-mongo`
Then start node keyboard via `node-keyboard`, and import this plugin via `const mongo = requireg('node-keyboard-mongo')`
### As Local
If instead you cloned node-keyboard, then install locally in that folder via `npm i node-keyboard-mongo`
Then start node keyboard via `node keyboard` and import this plugin via `const mongo = require('node-keyboard-mongo')`
## Usage
* `oplog.listen({ uri: String, includePast: Boolean = false })`
* `tail({ uri: String, db: String, collection: String, findQuery: Object = {}, fields: Object = {} })`
* `query({ uri: String, db: String, collection: String, findQuery: Object = {}, fields: Object = {} })`
## Examples
* [query](./examples/01_query.js)
* [capped collection](./examples/02_capped.js)
* [oplog](./examples/03_oplog.js)
> Ref:
> 1. [MongoDB Docs: Connection string](https://docs.mongodb.com/manual/reference/connection-string/)