mongust

1.0.4 • Public • Published

Crypto wrapper with Mcrypt ecncryption, like php.

For example:

var mongust = require('mongust');
mongust.connect('localhost:27017/mydb');

var oid = mongust.oid; // ObjectID with validate (onli string id)
var moid = mongust.moid; // ObjectID (without validate)
var db = mongust.db;


setTimeout(function () {
  mongust.db.us.findOne({'_id' : oid('5774274263d07270e157cc44') }, function(err, doc) {
    if(doc1!=null){
    console.log(doc1);
    }
  });
}, 2000);

Readme

Keywords

Package Sidebar

Install

npm i mongust

Weekly Downloads

2

Version

1.0.4

License

MIT

Last publish

Collaborators

  • erickmarlo