node-keyboard-mongo
v1.3.1
Published
MongoDB support for node-keyboard
Downloads
18
Readme
node-keyboard-mongo
MongoDB support for 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
Ref: