Package Exports
- @evodev/evo.db
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@evodev/evo.db) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Evo.DB
Is a local storage database that is very easy to use.
Usage
DB(path)To setup. Path is the location of the data file.
DB#set(key, value)To set
key's value intovalue.DB#get(key, value)To get
key's value.DB#push(key, value)To push
valueintokey.DB#add(key, value)If the
key's value is undefined, it will throw an error. If it is a number, it will sum the value withvalue. If it is an array, it will push thevalueinto it.DB#keys(key)To get all keys of
key's value.DB#values(key)To get all values of
key's value.
Example
let DB = require("@evodev/evo.db");
let db = new DB("./index.json");
db.set("o", 0); //0
db.add("o", 2); //2
db.add("o", -3); //-1Developer
- Gaia#7541
Support
Donation
- PayPal:
nekomaru76