zokudb
v1.2.5
Published
A package born of boredom
Downloads
4
Maintainers
Readme
[✨] Zokuru Database
A project born out of boredom
[💫] What is the function of this package?
This is a package that can help manage databases with local storage
[❄️] How to use this package?
You need to import ZokuDB
from this package
const { ZokuDB } = require("zokudb");
Now, let's setup your database
const database = new ZokuDB({
dbFolder: "my-table",
dbName: "database",
noBlankData: true,
readable: true
});
dbFolder
is the name of the folder to store your database files, anddbName
is the name of the database file.
- One of
dbFolder
anddbName
required
From the above example, I created a database with a folder named "my-table", and a file named "database"
This will create a new (or existing) database file with a directory ./my-table/database.json
This package is more or less similar to quick.db, it also supports set
, get
, has
, fetch
, delete
methods and so on.
[☁️] Install this package
$ npm i zokudb