Skip to content

Fullchee/cli-mongo-connection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cli-mongo-connection

JavaScript Style Guide

NSP Status

Get the Mongo information for command line programs.

Code Usage

// your-program.js
const cliMongoConnection = require('cli-mongo-connection');

async function main() {
    const db = await cliMongoConnection();
    // do something with the connection to the database
}

Program Usage

$ node your-program.js --host <host> --port <port> --username <username> --password <password>

Vision

I built this to easily connect to a mongo database to run small scripts.

You can only connect to one database.

It just has the host, port, username and password.

About

Does all the CLI work of getting MongoDB options.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published