{"library":"mongodb-cross-cursor","type":"library","category":null,"description":"A MongoDB driver extension (v1.0.17) that enables consuming MongoDB cursors across multiple Node.js instances, useful in microservice environments. It works by leveraging internal MongoDB wire protocol commands to persist cursor state across restarts or upgrades. Unlike approaches using `limit/skip` (which become slow over large datasets) or range-based queries (costly across indexes), this package directly manipulates cursor internals. It supports mongoose peer dependency ^6 || ^7 || ^8 || ^9 and mongodb driver ^4 || ^5 || ^6 || ^7. Includes TypeScript types. Active development with occasional releases.","language":"javascript","status":"active","version":"1.0.17","tags":["javascript","mongodb","cursor","resume cursor","typescript"],"last_verified":"Fri Jun 05","install":[{"cmd":"npm install mongodb-cross-cursor","imports":["import { initiate } from 'mongodb-cross-cursor';","import MongoCrossCursor from 'mongodb-cross-cursor';","const instance = new MongoCrossCursor(sharedCursor, client, dbName, collectionName, batchSize);"]},{"cmd":"yarn add mongodb-cross-cursor","imports":[]},{"cmd":"pnpm add mongodb-cross-cursor","imports":[]}],"homepage":"https://github.com/crisp-oss/node-mongodb-native-cross-cursor#readme","github":"https://github.com/crisp-oss/node-mongodb-native-cross-cursor","docs":null,"changelog":null,"pypi":null,"npm":"mongodb-cross-cursor","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}