mongust

Short mongodb syntax like mongo console syntax

Usage no npm install needed!

<script type="module">
  import mongust from 'https://cdn.skypack.dev/mongust';
</script>

README

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