Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including mangodb-client with all npm packages installed. Try it out:

var mangodbClient = require("mangodb-client")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

mangodb-client v2.0.0

Powerful Node.js client for Mangodb


Build Status NPM version

A powerful MangoDB client for Node.js

Most users just want to get started quickly without getting weighed down by features. The mangodb-client brings a whole new level of simplicity. Happy sharting!


npm install --save mangodb-client


// Node auto-discovery. Or use any config format of your own invention!
const db = require('mangodb-client')();

// Write something (guaranteed consistency)
db.put('key', 'value', error => {
    if (error) {
      // Not even worried
    } else {

// And with Promises
db.put('key', 'value').then(() => console.log('yep'));

// Read something (predictive result, which will self-correct
// if the server sends a more accurate response).
db.get('key', (error, {key, value}) => {
  if (error) {
    // Still not worried
  } else {
    console.log(`Got ${value} at ${key}`)

// And with Promises
db.get('key').then(({key, value}) => console.log(`Got ${value} at ${key}`));
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free