Socket
Book a DemoInstallSign in
Socket

fastmongo

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fastmongo

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

npmnpm
Version
0.0.1
Version published
Weekly downloads
3
200%
Maintainers
1
Weekly downloads
 
Created
Source

🎉 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://localhost/FASTMONGO");

  const myDB = await mongo.Database();
  myDB.set("nice.data", 1243);
  myDB.get("nice.data", "defaultValue");
  myDB.has("nice.data");
  // Converted normal value to array value here:
  myDB.update("nice.data", (oldValue) => {
    return [oldValue];
  });
  myDB.delete("nice.data");
  // Soon: push, add, subtract
})();

API

Coming Soon™️

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

Keywords

easy

FAQs

Package last updated on 02 Dec 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts