Get the mongodb's command history
Install
$ npm install --save mongo-history
Usage
const mongoHistory = ; console;//=> ['show dbs', 'db.fs.files.count()', 'db.serverStatus()', 'show dbs', 'db.serverStatus()', ...] console;//=> [db.fs.files.count()', 'db.serverStatus()', 'show dbs', ...]
API
mongoHistory(options)
Returns an array of mongodb's commands. On Windows machines returns empty array.
options
uniq
Type: boolean
Default: false
Returns array with uniq mongodb's commands.
License
MIT © Nikolay Spiridonov