string.db
v1.1.0
Published
The most amazing database
Downloads
26
Readme
How to use
Set key to value
let string = new StringDB();
string.set("g", "k");
Get key
let string = new StringDB();
string.get("g"); // -> "k"
Check if key exists
let string = new StringDB();
string.has("g"); // -> true
Delete key
let string = new StringDB();
string.delete("g");
Get entries
let string = new StringDB();
string.entries() // -> [{key: "g", value: "k"}]
Get keys
let string = new StringDB();
string.keys() // -> [{key: "g"}]
Get values
let string = new StringDB();
string.values() // -> [{value: "k"}]
Clear database
let string = new StringDB();
string.clear() // -> ""