Skip to content

seasaltsaige/text-database

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"

About

A shitty plain text database wrapper. Why you would use this? I don't know. Please don't.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published