Skip to content

jimbuck/flexel

Repository files navigation

flexel

Short Description

Build Status Code Coverage Dependencies DevDependencies npm Monthly Downloads Total Downloads

Long Description

Example:

import Flexel from 'flexel';

const db = new Flexel(); // in memory
const db = new Flexel('/path/to/db'); // on disk
const db = new Flexel(someLevelUpInstance); // custom levelup instance (use any leveldown store)

await db.put('project', someObject);
let result = await db.get('project'); // returns someObject

db.createReadStream().pipe(/* ... */) // Same options as Level.

const subDB = db.sub('subarea'); // sublevel instance
const queue = db.queue('queueNamespace'); // async enqueue, dequeue, peek
const stack = db.stack('stackNamespace'); // async push, pop, peek

Features:

  • Coming soon

Contribute

  1. Fork it
  2. npm i
  3. npm run watch
  4. Make changes and write tests.
  5. Send pull request! 😎

License:

MIT

About

Create specialized data structures from level, just like sublevel.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published