npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

couchdb-changes-response

0.4.0

@mmalecki

npmSnykSocket
Downloads:45
$ npm install couchdb-changes-response
DailyWeeklyMonthlyYearly

couchdb-changes-response

Build Status

Mimic CouchDB's _changes response in a streaming fashion.

Installation

npm i couchdb-changes-response

Usage

Please note: this module is heavily WIP, only continuous feed is supported right now.

var ChangesResponse = require('couchdb-changes-response')

var response = new ChangesResponse({
  type: 'continuous'
}))

response.write({
  id: 'foobar',
  seq: 132,
  doc: {
    id: 'foobar',
    bar: 'foo'
  })
})