Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cerebral-pouchdb

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cerebral-pouchdb

A cerebral module for integrating the cerebral store with one or more pouch dbs

  • 0.0.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

cerebral-pouchdb

A cerebral module for integrating the cerebral store with one or more pouch dbs.

Install

npm install cerebral-pouchdb

Usage

From your main.js

// import your cerebral controller
import controller from './controller';

// import cerebral-pouchdb service
import pouchdb form 'cerebral-pouchdb';

// import your local modules
import home from './modules/home';
import notFound from './modules/notFound';

// prepare modules
const modules = {
  db: pouchdb({
    localDb: 'myappdb',
    remoteDb: 'http://localhost:3000/db/myappdb', // optional - syncs with remote db when provided
    statePath: 'data',                            // optional - defaults to [ 'data' ]
    documentTypes: ['user', 'invoice']            // optional - defaults to all document types
  }),
  home,
  notFound
};

// init the modules
controller.extends(modules);

Contribute

Fork repo

  • npm install
  • npm run dev runs dev mode which watches for changes and auto lints, tests and builds
  • npm test runs the tests
  • npm run lint lints the code
  • npm run build compiles es6 to es5

Keywords

FAQs

Package last updated on 30 Dec 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc