open-index/open-npm huggingface dataset:
npm package: @staltz/jsondown
Description: A drop-in replacement for LevelDOWN that writes to a JSON file on disk
Author: Atul Varma
Latest version: 1.1.2

[![Travis](https://secure.travis-ci.org/toolness/jsondown.png)](http://travis-ci.org/toolness/jsondown)

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

```js
var levelup = require('levelup');
var db = levelup('./mydata.json', { db: require('jsondown') });

db.put('foo', 'bar');
```

  [LevelDOWN]: https://github.com/rvagg/node-leveldown