vue-pouchdb

Vue.js plugin for PouchDB

Usage no npm install needed!

<script type="module">
  import vuePouchdb from 'https://cdn.skypack.dev/vue-pouchdb';
</script>

README

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