lowdb-adapter

0.1.3 • Public • Published

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

/lowdb-adapter/

    Package Sidebar

    Install

    npm i lowdb-adapter

    Weekly Downloads

    3

    Version

    0.1.3

    License

    MIT

    Unpacked Size

    4.57 kB

    Total Files

    5

    Last publish

    Collaborators

    • handofbug