Socket
Socket
Sign inDemoInstall

quickdb

Package Overview
Dependencies
0
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    quickdb

JSON database for NodeJS, quick and easy, just require it and start saving stuff.


Version published
Weekly downloads
269
decreased by-1.82%
Maintainers
1
Install size
10.6 kB
Created
Weekly downloads
 

Readme

Source

quickdb

QuickDB is an easy to use JSON file database

QuickDB is an easy to use fake database
that saves items inside JSON files.

Instead of setting up a database, you
can use QuickDB to save information.

Store any type of object.

Installation

npm install quickdb --save

quickdb database folder location

quickdb will save its documents in a folder called dbdata,
inside the root of your application

Usage


var quickdb = require('quickdb');

var basicCallback = (response)=>{
  console.log(response);
};


var item_to_insert = { name: "Woopty woop!" };
quickdb.doc.insert("newSetName", "newDocName", item_to_insert, basicCallback);


var searchFunc = (val)=>{
  return val.item.name = "Woopty woop!";
};

quickdb.doc.find("newSetName", "newDocName", searchFunc, basicCallback);


quickdb.doc.getdoc("newSetName", "newDocName", basicCallback);


quickdb.doc.docset("newSetName", basicCallback);


//update will replace the whole item set
quickdb.doc.update(setName, docName, [], basicCallback);


quickdb.doc.remove(setName, docName, searchFunc, basicCallback);

Keywords

FAQs

Last updated on 07 May 2017

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc