@maxisthemoose/text-database
v1.0.1
Published
A terrible plain text database wrapper. Why you would use this? I don't know. Please don't.
Downloads
2
Maintainers
Readme
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"