# mongrations

> Simple migrations (utilising Mongoose for memory)

Latest version **1.0.0** (published 2015-03-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install mongrations
pnpm add mongrations
yarn add mongrations
bun add mongrations
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2015-03-18 |
| First published | 2015-03-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+6 in 1 direct dependencies) |
| Install scripts | no |
| Author | Nathan Hoad |
| Maintainers | nathanhoad |
| Keywords | mongo, mongoose, migrations |

## Links

- npm: https://www.npmjs.com/package/mongrations
- Repository: https://github.com/nathanhoad/mongrations
- Issues: https://github.com/nathanhoad/mongrations/issues
- npm.io page: https://npm.io/package/mongrations

## Dependencies (2)

- [async](https://npm.io/package/async.md) ^0.9.0
- [lodash](https://npm.io/package/lodash.md) ^3.5.0

## 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

- 1.0.0 (latest) — 2015-03-18

## README

# Mongrations

Simple migrations for Mongoose. 

* Migrations are remembered in a Mongo collection.


## Usage

Build commands into your Gulpfile:

```
var Mongoose = require('../models'),
    Mongrations = require('mongrations')({ mongoose: Mongoose });


Gulp.task('create_migration', function () {
    Mongrations.create(process.argv.slice(2));
});

Gulp.task('migrate', function () {
    Mongrations.up();
});

Gulp.task('rollback', function () {
    Mongrations.down();
});
```

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