{"library":"mongodb-resumetoken-decoder","type":"library","category":null,"description":"A utility library for decoding MongoDB change stream resume tokens into their constituent components. Current stable version is 1.1.2, with an irregular release cadence focused on maintenance. It provides a simple decode function that extracts fields such as timestamp, version, tokenType, txnOpIndex, fromInvalidate, uuid, and documentKey from a hex-encoded resume token string. It also ships as a CLI via npx. Compared to manual parsing, this library handles the binary encoding details and BSON type mapping, reducing errors and development time.","language":"javascript","status":"active","version":"1.1.2","tags":["javascript","mongodb","change","stream","resume","token","typescript"],"last_verified":"Fri Jun 05","install":[{"cmd":"npm install mongodb-resumetoken-decoder","imports":["import decode from 'mongodb-resumetoken-decoder'","const decode = require('mongodb-resumetoken-decoder')","import type { ResumeToken } from 'mongodb-resumetoken-decoder'","const decode = require('mongodb-resumetoken-decoder').default"]},{"cmd":"yarn add mongodb-resumetoken-decoder","imports":[]},{"cmd":"pnpm add mongodb-resumetoken-decoder","imports":[]}],"homepage":"https://github.com/mongodb-js/mongodb-resumetoken-decoder","github":"https://github.com/mongodb-js/mongodb-resumetoken-decoder","docs":null,"changelog":null,"pypi":null,"npm":"mongodb-resumetoken-decoder","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}