lowdb-adapter
v0.1.3
Published
Connect node.js lowdb in one string
Downloads
18
Readme
lowdb-adapter
Makes it easy to connect lowdb in one string
Install
# Just use it
npm install lowdb-adapter --save
API
(fileName = 'db.json', adapterName = 'FileSync', options = {})
let db = require('lowdb-adapter')();
db.get('posts').push({id: 2).write();
filename
Default 'db.json'.
adapterName
Default 'FileSync'. Can be:
- FileSync
- FileAsync
- Memory
options
Default {encrypt : true, pass: 42} Used crypto
License
MIT