@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();

Dependencies (1)

Dev Dependencies (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