1.0.1 • Published 3 years ago

@maxisthemoose/text-database v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

Installation

npm i @maxisthemoose/text-database

Why are you here

No seriously, why? Don't use this as a database, this was made as a joke. It's worse than quick.db.

If you really want to use this for some reason...

const { TextDatabase } = require("@maxisthemoose/text-database");

const TDB = new TextDatabase({
    databaseName: "main", // The name of the database (file)
    location: "./", // The relative path to where you want to store your database (file)
});

TDB.writeData("key", "value"); // As of now, and probably forever, 
                               // this only supports 4 data types,
                               // string, boolean, number, and Array<string>. 

TDB.getData("key"); // --> "value"