0.1.3 • Published 6 years ago

lowdb-adapter v0.1.3

Weekly downloads
6
License
MIT
Repository
github
Last release
6 years ago

lowdb-adapter NPM version

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:

  1. FileSync
  2. FileAsync
  3. Memory

options

Default {encrypt : true, pass: 42} Used crypto

License

MIT

0.1.3

6 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago