objectbox

0.3.0 • Public • Published

objectbox

A dictionary to maintain objects with persistence.

NPM

Travis branch npm npm


Documentation

Please visit the Wiki.


Overview

objectbox is a dictionary to maintain objects with persistence. objectbox will give you an unique numeric id when your object is added to the dictionary successfully. You can then use this id to find out the object from the box. objectbox uses NeDB datastore to permanently keep your objects, database is just there by default. If you don't like NeDB, objectbox allows you to use your own persistence facility as the datastore for the objects.


Installation

$ npm install objectbox --save


Usage

See Usage on the Wiki for details.

Here is an quick example of how to create a box.

var Objectbox = require('objectbox'),
    boxPath = __dirname + '/database/box.db',
    box = new Objectbox(boxPath, 1000);

License

Licensed under MIT.

Dependencies (2)

Dev Dependencies (2)

Package Sidebar

Install

npm i objectbox

Weekly Downloads

19

Version

0.3.0

License

MIT

Last publish

Collaborators

  • hedywings
  • peter.eb
  • simenkid