Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/juliangruber/json-store

Simple json db for node
https://github.com/juliangruber/json-store

Last synced: 4 days ago
JSON representation

Simple json db for node

Awesome Lists containing this project

README

        

# JSONStore

Simple json store for node. Saves changes on disk immediately and blocking, so only relevant for cli applications and such.

## Usage

```javascript
import JSONStore from 'json-store'

const db = new JSONStore('./index.json')

db.set('foo', 'bar')
db.get('foo') // bar

db.set('obj', { foo: 'bar' })
db.get('obj').foo // bar
```