@burakbey/mongodb-tools
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

@burakbey/mongodb-tools

This is a simple package that you can run mongodump and mongorestore commands on both Linux and Windows platforms.

Usage

import { dump } from '@burakbey/mongodb-tools';
import { join } from 'path';

async function myFunction() {
    const uri = 'mongodb://127.0.0.1/database';
    const output = join(__dirname, 'dump');

    const outputFolderName = await dump(uri, output);
    console.log(`Done. ${join(output, outputFolderName)}`);
}

myFunction();

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    1
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i @burakbey/mongodb-tools

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

29.7 MB

Total Files

6

Last publish

Collaborators

  • burakbey