Skip to content
This repository has been archived by the owner on Feb 20, 2024. It is now read-only.

pakastin/oplog-stream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

oplog-stream

MongoDB oplog stream wrapper

Installation

  npm install oplog-stream

Usage

  var oplog = require('oplog-stream')
  
  oplog(function (err, stream) {
    if (err) {
      throw err
    }
    stream.on('data', function (data) {
      console.log(data)
    })
    stream.on('error', function () {
      throw err
    })
  })

Destroying stream

  stream.destroy() // also closes connection to db

About

MongoDB oplog stream wrapper

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages