crummydb

0.3.2 • Public • Published

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');
 

Package Sidebar

Install

npm i crummydb

Weekly Downloads

2

Version

0.3.2

License

MIT

Unpacked Size

21.5 kB

Total Files

5

Last publish

Collaborators

  • the3rdc