# mongo-history

> Get the mongodb's command history

Latest version **0.0.3** (published 2016-02-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install mongo-history
pnpm add mongo-history
yarn add mongo-history
bun add mongo-history
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2016-02-09 |
| First published | 2016-02-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Nikolay Spiridonov |
| Maintainers | sohje |
| Keywords | file, files, mongodb, console, cmd, mongo, mongod, deploy, deployment, shell, cli, term, history, command |

## Links

- npm: https://www.npmjs.com/package/mongo-history
- Repository: https://github.com/sohje/mongo-history
- Homepage: https://github.com/sohje/mongo-history#readme
- Issues: https://github.com/sohje/mongo-history/issues
- npm.io page: https://npm.io/package/mongo-history

## Alternatives

- [angular-pipes](https://npm.io/package/angular-pipes.md) — 5.6K weekly downloads
- [@ng-web-apis/midi](https://npm.io/package/@ng-web-apis/midi.md) — 2.6K weekly downloads
- [happn-3](https://npm.io/package/happn-3.md) — 1.6K weekly downloads
- [@opensip-cli/lang-go](https://npm.io/package/@opensip-cli/lang-go.md) — 1.2K weekly downloads
- [mongoose-typescript](https://npm.io/package/mongoose-typescript.md) — 85 weekly downloads

## Recent versions

- 0.0.3 (latest) — 2016-02-09
- 0.0.2 — 2016-02-04
- 0.0.1 — 2016-02-03

## README

> Get the [mongodb's](https://www.mongodb.org/) command history

[![npm version](https://badge.fury.io/js/mongo-history.svg)](https://badge.fury.io/js/mongo-history)
[![Build Status](https://travis-ci.org/sohje/mongo-history.svg?branch=master)](https://travis-ci.org/sohje/mongo-history)
## Install

```
$ npm install --save mongo-history
```


## Usage

```js
const mongoHistory = require('mongo-history');

console.log(mongoHistory());
//=> ['show dbs', 'db.fs.files.count()', 'db.serverStatus()', 'show dbs', 'db.serverStatus()', ...]

console.log(mongoHistory({uniq: true}));
//=> [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](https://github.com/sohje)

---
_Source: https://npm.io/package/mongo-history · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
