JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 17
  • Score
    100M100P100Q53701F
  • License ISC

A simple local storage database that automatically setup itself for you.

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 into value.

  • DB#get(key, value)

    To get key's value.

  • DB#push(key, value)

    To push value into key.

  • 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 with value. If it is an array, it will push the value into 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); //-1

Developer

  • Gaia#7541

Support

Donation

  • PayPal: nekomaru76