Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

crummydb

crummyindeed12MIT0.3.2

A fully NodeJS KVStore Database

crummyindeed, kvstore, key value, node, js, database

readme

crummydb

what

  • A level-style embedded databsese (key-value store) for NodeJS
  • Written fully in NodeJS with minimal dependancies

why

  • Available best in class embedded stores relied on compiled binaries which make coss-platform deployment difficult
  • Available "pure node" stores were limited to a size that could be held completely in memory

how

const DB = require('crummydb');

//Initialize
var directory = 'testDir'; //data stored here
db = new Naive(directory);
await db.init();

//Upsert a Value
db.put('myKey','My Cool Value');

//Retrieve a Value
await db.get('myKey');

//Remove a Value
db.delete('myKey');