Get unlimited public & private packages + team-based management with npm Teams.Learn more »

vue-pouchdb

1.0.0 • Public • Published

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

Keywords

Install

npm i vue-pouchdb

DownloadsWeekly Downloads

4

Version

1.0.0

License

MIT

Last publish

Collaborators

  • avatar