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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.2
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.2
    0
  • 0.1.1
    1

Package Sidebar

Install

npm i fastify-nedb

Weekly Downloads

1

Version

0.1.2

License

MIT

Unpacked Size

5.04 kB

Total Files

6

Last publish

Collaborators

  • vnguyen.io