Socket
Socket
Sign inDemoInstall

void.db

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    void.db

It is a JSON based data logging module.


Version published
Weekly downloads
5
decreased by-50%
Maintainers
1
Install size
3.32 kB
Created
Weekly downloads
 

Readme

Source

void.db

Join our discord
Support: https://voiddevs.org/dc
NPM: npmjs.com/package/void.db

const Database = require("void.db");
const db = new Database("./db.json");

db.set('serverStatus', { status: 'Online' })
/*
"serverStatus": {
  "status": "Online"
}
*/
db.add("money_claudette", 500)
/* 
  "money_claudette": 500
*/
db.push("serverSettings", { whitelist: "on", playerCount: "24" })
/*
"serverSettings": [
    {
      "whitelist": "on",
      "playerCount": "24"
    }
  ]
*/
db.has("money_claudette") // true
db.has("money_iclaudette") // false

db.get("money_claudette")
// => 500

db.sub("money_claudette", 100)
// => 400

db.fetch("serverStatus")
// => { status: "Online" }

db.get("serverStatus")
// => { status: "Online" }

db.delete("serverStatus")
// => {}

db.all()
/*
{
  money_claudette: 500,
  serverSettings: [ { whitelist: 'on', playerCount: '24' } ]
}
*/

db.clear()
// {}

Installation

If you have trouble with the installation, please feel free to visit our discord address.

  • npm i void.db

Keywords

FAQs

Last updated on 20 Apr 2021

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