jsondown

1.0.0 • Public • Published

Travis

This is a drop-in replacement for LevelDOWN that writes to a JSON file on disk.

It also retains the contents of the entire JSON file in memory, so it's only really useful for debugging purposes and/or very small data stores that need just a pinch of persistence.

Example

var levelup = require('levelup');
var db = levelup('./mydata.json', { db: require('jsondown') });
 
db.put('foo', 'bar');

Alternative Runtimes

In addition to NodeJS, JsonDOWN can be used on the RuntimeJS javascript unikernel. Additional details are provided in the guides section of this repositiory.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    23,120
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    23,120
  • 0.1.1
    3
  • 0.1.0
    3

Package Sidebar

Install

npm i jsondown

Weekly Downloads

2,235

Version

1.0.0

License

BSD

Last publish

Collaborators

  • staltz
  • varmaa