# mongo-to-mongo

> app to transfer mongodb for other instance

Latest version **1.1.1** (published 2017-08-12) · ISC license · 0 weekly downloads

## Install

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

## 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.1.1 |
| Published | 2017-08-12 |
| First published | 2017-02-23 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=7.6.0 |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | juscilan moreto |
| Maintainers | juscilan |
| Keywords | mongodb, nodejs, mongoose, datascience |

## Links

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

## Dependencies (1)

- [mongodb](https://npm.io/package/mongodb.md) ^2.2.24

## 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.1.1 (latest) — 2017-08-12
- 1.1.0 — 2017-03-02
- 1.0.9 — 2017-03-02
- 1.0.8 — 2017-02-26
- 1.0.7 — 2017-02-26
- 1.0.6 — 2017-02-24
- 1.0.5 — 2017-02-24
- 1.0.4 — 2017-02-24
- 1.0.3 — 2017-02-23
- 1.0.2 — 2017-02-23

## README

# mongo-to-mongo

## Using Node.js as NPM - Transfer MongoDB data


```
>npm i mongo-to-mongo --save

or

>yarn add mongo-to-mongo --save
```

```
>mongod
```

### Usage

```
'use strict'

const mtm = require('mongo-to-mongo')

const   dbs =  {
    dbFrom     :"mongodb://localhost/origin",
    dbTo       :"mongodb://localhost/destiny",
    flDrop     :"-d"
}

mtm.clone(dbs)
```

## Using  Using Nodejs REPL - Transfer MongoDB data

```
>npm install 
```

### or

```
>yarn install
```

### Run Mongod (localhost):

```
Run local mongod: 
>mongod
```


### Call in REPL (arguments):

```
>node app mongodb://localhost/origin mongodb://localhost/destiny
```

### or Call in REPL (arguments) and drop collections database destiny flag -d:

```
>node app mongodb://localhost/origin mongodb://localhost/destiny -d
```

### Test (Mocha)

```
>npm test
```

### System requeriments

Node version 7.6.0 +

MongoDB shell version: 3.0.7

MongoDB version v3.0.7



[juscilan.com](http://juscilan.com)

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