3.0.7 • Published 7 months ago

@jkeesee/json-db v3.0.7

Weekly downloads
-
License
ISC
Repository
-
Last release
7 months ago

@jkeesee/json-db

Simple JSON file storage - enhanced with caching!

Get started

const db = require("@jkeesee/json-db")

// Set a key
db.set(key, value)

// Set more than one key
db.set({
  key1: "value",
  key2: "value2"
});

// Get a key
db.get(key)

// Get more than one key (returns array of values)
db.get(["key1", "key2"])

// List all keys
db.list()

// Delete a key
db.delete(key)

// Empty database of all keys and values
db.empty()

// Disable caching (better RAM but slower)
db.disableCache()
3.0.7

7 months ago

3.0.6

7 months ago

3.0.4

12 months ago

3.0.3

12 months ago

3.0.2

12 months ago

3.0.5

12 months ago

3.0.0

12 months ago

2.0.3

1 year ago

2.0.2

1 year ago

2.0.4

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago