How to use the pouchdb-node.plugin function in pouchdb-node

To help you get started, we’ve selected a few pouchdb-node examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ewnd9 / media-center / test / fixtures / create-db.js View on Github external
import initDb from '../../src/models/index';
import PouchDB from 'pouchdb-node';
PouchDB.plugin(require('pouchdb-adapter-memory'));

export const generateTmpDir = () => '/tmp/media-center-db-' + Math.random();
export default () => initDb(generateTmpDir(), { adapter: 'memory' });
github ewnd9 / media-center / src / models / index.js View on Github external
import PouchDB from 'pouchdb-node';
import t from 'tcomb-validation';
import Model from 'pouchdb-model';

import MigratePlugin from 'pouchdb-migrate';

PouchDB.plugin(MigratePlugin);

import File from './file';
import Prefix from './prefix';

import EpisodeScrobble from './episode-scrobble';
import MovieScrobble from './movie-scrobble';

import Show from './show';
import Movie from './movie';
import Person from './person';

export default (dbPath, dbOptions = {}) => {
  const initializers = {
    File,
    Prefix,
    EpisodeScrobble,

pouchdb-node

PouchDB, the Node-only edition.

Apache-2.0
Latest version published 5 months ago

Package Health Score

86 / 100
Full package analysis

Popular pouchdb-node functions

Similar packages