saver.db
TypeScript icon, indicating that this package has built-in type declarations

3.0.3 • Public • Published

Ren Database Module And API

Downloads Version

With this module, you can easily add data to json.

Installation

npm i ren.db

Examples

Javascript

  const db = require("saver.db");

  db.set(`UserId`, "368695088718544896"); // ---> Create user data
  db.add(`Usernumber`, 5); // ---> Add user data this value
  db.divide(`Usernumber`, 5); // ---> Divide user data by this value
  db.extract(`Usernumber`, 5);// ---> Extract this value from user data
  db.multiply(`Usernumber`, 5); // ---> Multiply user data by this value
  db.delete("UserAvatar"); // ---> Delete user data
  db.push(`User`, `RengaN`); // ---> Push to array
  db.has("User"); // ---> True Or False
  db.fetch(`User`); // ---> Fetch user data
  db.get(`User`); // ---> Fetch user data
  db.fetchAll(); // ---> Fetch all data
  db.clear(); // ---> Deletes all data and also creates a backup file.

Typescript

  import * as db from "saver.db"

  db.set(`UserId`, "368695088718544896"); // ---> Create user data
  db.add(`Usernumber`, 5); // ---> Add user data this value
  db.divide(`Usernumber`, 5); // ---> Divide user data by this value
  db.extract(`Usernumber`, 5);// ---> Extract this value from user data
  db.multiply(`Usernumber`, 5); // ---> Multiply user data by this value
  db.Delete("UserAvatar"); // ---> Delete user data
  db.push(`User`, `RengaN`); // ---> Push to array
  db.has("User"); // ---> True Or False
  db.fetch(`User`); // ---> Fetch user data
  db.get(`User`); // ---> Fetch user data
  db.fetchAll(); // ---> Fetch all data
  db.clear(); // ---> Deletes all data and also creates a backup file.

Bugs Report

RengaN

Discord

Readme

Keywords

Package Sidebar

Install

npm i saver.db

Weekly Downloads

2

Version

3.0.3

License

Apache-2.0

Unpacked Size

23.3 kB

Total Files

19

Last publish

Collaborators

  • rengan