Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/juliangruber/json-store
- Owner: juliangruber
- Created: 2012-09-19T09:00:53.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2023-01-09T16:00:38.000Z (almost 2 years ago)
- Last Synced: 2024-10-17T19:49:55.985Z (26 days ago)
- Language: JavaScript
- Size: 326 KB
- Stars: 17
- Watchers: 5
- Forks: 6
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
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') // bardb.set('obj', { foo: 'bar' })
db.get('obj').foo // bar
```