recover-couch-doc

1.0.0 • Public • Published

recover-couch-doc

Given a deleted document id, it will attempt to get the last rev before deletion.

warning

Please note, couchdb is not a revision control db, so this is not guaranteed to work. If this db has been compacted, or replicated, chances are the prev revision is not around anymore.

Usage

As a module

npm i recover-couch-doc
var recover = require('recover-couch-doc')
recover('http://localhost:5984/stuff', 'E327293', function(err, doc) {
  
})

cmd line

npm i -g recover-couch-doc
recover-couch-doc http://localhost:5984/stuff E327293

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i recover-couch-doc

Weekly Downloads

1

Version

1.0.0

License

none

Last publish

Collaborators

  • eckoit