ZTRdiamond / zanixon.db

a simple database that can be used for many purposes such as making simple games, storing small data, and others, this package has functions that are useful for making games such as abbreviate and leaderboard.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ZanixonDB

A simple JSON database with ease use, You can use this database for your small games based on nodejs or you can use this database for other usage.

The write and read speed is depending on the device you use, this module using fs to write and read data on JSON.

GitHub last commit (branch) GitHub package.json version (subfolder of monorepo) GitHub repo size Static Badge

Module Installation

Im not upload this module to npm because idk how to upload it lol, then im using npm i github:user??/repo?? to install this module from github.

On your terminal

npm i github:ZTRdiamond/zanixon.db

Then import and setup the module

const zn = require("zanixon.db");

zn.storageInit({
   "dir":"./data/main"
})
zn.storage();

Now you can use this module to save and get your data from local database, this module must have write and read permission in device that running the module.

I'm not recommend this module to organizing a bigger data because your data can corrupted and lost, this database i make to help me creating text-based game on whatsapp that running on my whatsapp bot.

Documentation

I will make the documentation later, for now I have not made the docs in detail and in this version 2.0.0 update there are quite a lot of changes so the previous docs are not relevant in my opinion, please check the code for each parameter and its use. thank you.


About

a simple database that can be used for many purposes such as making simple games, storing small data, and others, this package has functions that are useful for making games such as abbreviate and leaderboard.


Languages

Language:JavaScript 100.0%