0.1.0 • Published 5 years ago

mongoose-ssh v0.1.0

Weekly downloads
7
License
MIT
Repository
github
Last release
5 years ago

Mongoose-Ssh

Mongoose through ssh tunnel.

XO code style

Install

npm install --save mongoose-ssh

Usage

const mongoose = require('mongoose-ssh');

mongoose.connect(
  {
    host: 'ssh-server-host',
    port: 'ssh-server-port',
    dstHost: 'destination-host',
    dstPort: 'destination-port',
    localHost: 'local-host',
    localPort: 'local-port',
    username: 'ssh-username',
    privateKey: 'ssh-private-key'
  },
  'mongodb://dbUsernam:dbPassword@localhost/dbname'
);

See test.js for more details.

License

MIT

References