Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

pouchdb-adapter-fs

pouchdb-community49Apache-2.02.0.7

PouchDB adapter that uses fsdown

fs, pouchdb, adapter

readme

pouchdb-adapter-fs

PouchDB adapter using fsdown under the hood. Designed for running a quick persistent PouchDB adapter in Node.js.

Warning: not designed for production use. fsdown contains race conditions and is most appropriate for quick debugging and testing. It does however pass the full PouchDB test suite.

Usage

Install:

npm install pouchdb-adapter-fs

Then

var PouchDB = require('pouchdb-core')
  .plugin(require('pouchdb-adapter-fs'));

var db = new PouchDB('mydb', {adapter: 'fs'});

Testing

COUCH_HOST=http://admin:secret@localhost:5984 npm test