Skip to content

npm to create your own database using our examples you can create a nice JSONfile database

License

Notifications You must be signed in to change notification settings

TeamArcades/teamarcades.db

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

teamarcades.db

Join our discord
Support: https://teamarcades.xyz/dc
NPM: npmjs.com/package/teamarcades.db

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

db.set('serverStatus', { status: 'Online' })
/*
  "serverStatus": {
    "status": "Online"
  }
*/
db.add("money_K4itrun", 500)
/* 
  "money_K4itrun": 500
*/
db.push("serverSettings", { whitelist: "on", playerCount: "24" })
/*
  "serverSettings": [
      {
        "whitelist": "on",
        "playerCount": "24"
      }
    ]
*/
db.has("money_K4itrun") // true
db.has("money_iK4itrun") // false
db.get("money_K4itrun") // => 500
db.sub("money_K4itrun", 100)// => 400
db.fetch("serverStatus") // => { status: "Online" }
db.get("serverStatus") // => { status: "Online" }
db.delete("serverStatus") // => {}
db.clear() // {}
db.all()
/*
  {
    money_K4itrun: 500,
    serverSettings: [ { whitelist: 'on', playerCount: '24' } ]
  }
*/

Installation

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

  • npm i teamarcades.db

t e a m a r c a d e s . d b

About

npm to create your own database using our examples you can create a nice JSONfile database

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published