shurly

1.1.0 • Public • Published

Shurly

Shurly is a simple, dependency free, Node.js module for ensuring indexes in MongoDb.

Install

npm install shurly 

Use

var shurly = require('shurly');

shurly.ensure({

  mongo: mongo, 
  collections: [{
    name: 'webpages',
    fields:  ['url', 'ok']
  }]

}, function (err, ensured) {

  if (err) {
    console.log(err);
  } else {
    console.log(ensured); 
  }

});

Readme

Keywords

none

Package Sidebar

Install

npm i shurly

Weekly Downloads

0

Version

1.1.0

License

none

Last publish

Collaborators

  • samuelgilman