fastmongo

✨ FastMongo is a easy to use mongodb wrapper. Like quick.db.

Usage no npm install needed!

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

README

🎉 FastMongo

FastMongo is a easy to use mongodb wrapper. Like quick.db.


Features

  • Supports full JSON paths.
  • Easy to use.
  • Uses collections and documents.

Usage

const { createFastMongo } = require("fastmongo");

(async () => {
  const mongo = await createFastMongo("mongodb://calhost/FASTMONGO");

  const myDB = await mongo.Database();
  myDB.set("nice.data", 1243);
  myDB.get("nice.data", "defaultValue");
  myDB.has("nice.data");
  myDB.update("nice.data", (oldValue) => {
    return [oldValue];
  });
  myDB.delete("nice.data");
})();

API

Coming Soon™️


TODO

  • db.add(), db.subtract(), db.push(), db.shift()
  • Cache System
  • Better Data Fetching System

Created By Kıraç Armağan Önal With ❤