@maxisthemoose/text-database
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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"

Package Sidebar

Install

npm i @maxisthemoose/text-database

Weekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

12.8 kB

Total Files

5

Last publish

Collaborators

  • maxisthemoose