vue-pouchdb

Vue.js plugin for PouchDB


Keywords
Vue, PouchDB
License
MIT
Install
npm install vue-pouchdb@1.0.0

Documentation

MIT License Patreon

vue-pouchdb

Vue.js plugin that adds PouchDB to your Vue.js apps.

It also (currently) includes pouchdb-authentication because you probably should use that if you're building browser apps. 😺

It's a tiny useful bit of code I extraced from BlueInk.

Usage

Assumes browserify:

Vue.use(require('vue-pouchdb'), {name: 'database-name'});

The first option is the plugin--see Vue.use() for more info. The second option is the options object for PouchDB.

If you want to use this with Apache CouchDB or Cloudant, pass a database URL as the name. Easy peasy! 😺

License

MIT