constDatabase=require("ultimate-db.js")// Require the packageconstdb=newDatabase("./database.json")// Define db with the database path// Now, you can use db to manage your database
db.set(name,value)// Saves the Name and Value in the Databasedb.add(name,value)// Adds the given value to the value in the Database and saves itdb.subtract(name,value)// Subtract the given value to the value in the Database and saves itdb.push(name,value)// Adds an Element to the Arraydb.get(name)// Gets the value from the database for the given namedb.has(name)// Checks if the name is in the Database// Return Booleandb.delete(name)// Deletes the given name from the Databasedb.all()// Returns everything in the Database as an array// Properties are name and valuedb.clear()// Clears the Database