{"library":"mongo-oplog","type":"library","category":null,"description":"Watch MongoDB oplog (replica set operation log) for real-time changes in Node.js. Version 2.1.4 supports Promise/async-await, event-based streaming using eventemitter3, and filtering by namespace (database/collection). Requires MongoDB replica set configuration. Built on the native MongoDB driver. Breaking changes in 2.x dropped old callback API in favor of promises. Differentiators: lightweight, small footprint, backward-compatible callbacks in v2, and strong readability with XO.","language":"javascript","status":"active","version":"2.1.4","tags":["javascript","data","mongo","mongodb","watcher","live","oplog","cursor","typescript"],"last_verified":"Fri Jun 05","install":[{"cmd":"npm install mongo-oplog","imports":["import MongoOplog from 'mongo-oplog'","const MongoOplog = require('mongo-oplog')","import type { OplogEvent } from 'mongo-oplog'"]},{"cmd":"yarn add mongo-oplog","imports":[]},{"cmd":"pnpm add mongo-oplog","imports":[]}],"homepage":"https://github.com/cayasso/mongo-oplog","github":"git://github.com/cayasso/mongo-oplog","docs":null,"changelog":null,"pypi":null,"npm":"mongo-oplog","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}