fastify-nedb

    0.1.2 • Public • Published

    Fastify NeBD Plugin

    JavaScript Style Guide Build Status Known Vulnerabilities Greenkeeper badge

    Installation

    npm install fastify-nebd --save

    Usage

    fastify.register(require('fastify-nedb'), {
      dataStores: ['user']
    }, err => console.error(err))
     
    fastify.get('/', (request, reply) => {
      console.log(fastify.db.user) // NeDB persistence saved to dataFolder/user.db
    })

    Options

    Options object.

    {
      dataFolder: 'folder' // default to 'data'
      dataStores: ['store1', 'store2'] // must be specified
    }

    See NeDB for more details.

    Author

    Alex Vu Nguyen

    License

    Licensed under MIT.

    Install

    npm i fastify-nedb

    DownloadsWeekly Downloads

    1

    Version

    0.1.2

    License

    MIT

    Unpacked Size

    5.04 kB

    Total Files

    6

    Last publish

    Collaborators

    • vnguyen.io