1.0.0 • Published 8 years ago

vue-pouchdb v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

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. :smiley_cat:

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! :smiley_cat:

License

MIT