# node-migrate-mongodb

> Mongo store for node-migrate

Latest version **0.1.0** (published 2019-05-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install node-migrate-mongodb
pnpm add node-migrate-mongodb
yarn add node-migrate-mongodb
bun add node-migrate-mongodb
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2019-05-22 |
| First published | 2019-05-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 12.2 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | ct0r |
| Maintainers | ct0r |
| Keywords | node-migrate, mongodb, mongo |

## Links

- npm: https://www.npmjs.com/package/node-migrate-mongodb
- Repository: https://github.com/ct0r/node-migrate-mongodb
- Homepage: https://github.com/ct0r/node-migrate-mongodb#readme
- Issues: https://github.com/ct0r/node-migrate-mongodb/issues
- npm.io page: https://npm.io/package/node-migrate-mongodb

## 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.1.0 (latest) — 2019-05-22

## README

# node-migrate-mongodb

[![Version](https://img.shields.io/npm/v/node-migrate-mongodb.svg?style=flat-square)](https://www.npmjs.com/package/node-migrate-mongodb)
[![Build](https://img.shields.io/circleci/project/github/ct0r/node-migrate-mongodb/master.svg?style=flat-square)](https://circleci.com/gh/ct0r/node-migrate-mongodb)
[![Coverage](https://img.shields.io/codeclimate/coverage/ct0r/node-migrate-mongodb.svg?style=flat-square)](https://codeclimate.com/github/ct0r/node-migrate-mongodb)
[![License](https://img.shields.io/github/license/ct0r/node-migrate-mongodb.svg?style=flat-square)](https://github.com/ct0r/node-migrate-mongodb/blob/master/LICENSE)

Mongo store for [node-migrate](https://github.com/ct0r/node-migrate).

## Installation

```
npm install node-migrate-mongodb
```

## Options

| Command line         | Programmatic | Description                                     |
| -------------------- | ------------ | ----------------------------------------------- |
| `--store-url`        | url          | Mongo url. Default `mongodb://localhost:27017`. |
| `--store-collection` | collection   | Collection name. Default `_migrations`.         |

## Usage

### Command line

```
node-migrate --store node-migrate-mongodb --store-url mongodb://my-server/my-db --store-collection my_migrations
```

### Programatic use

```js
const migrate = require('node-migrate');
const mongoStore = require('node-migrate-mongodb');

const store = mongoStore({
  url: 'mongodb://my-server/my-db',
  collection: 'my_migrations'
});

migrate({ store });
```

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