A utility to extract the version string from a MongoDB Crypt shared library (e.g., mongo_crypt_v1.so). v2.0.1 is the current stable release; it provides both a programmatic API and a CLI. Ships TypeScript types. Useful for verifying or logging the crypt library version in applications using MongoDB's client-side encryption. Lightweight with no runtime dependencies.
npm install mongodb-crypt-library-versionNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Reads a MongoDB Crypt shared library file and extracts its version string using the programmatic API.
Ensure the library was built with proper version metadata (e.g., from the MongoDB driver package).
Read the file with fs.readFile or similar before calling getCryptLibraryVersion.
Use Node.js 14+ or consider older versions (v1.x) if needed.
Run 'npm install mongodb-crypt-library-version' or 'yarn add mongodb-crypt-library-version'.
Use named import: import { getCryptLibraryVersion } from 'mongodb-crypt-library-version'.Read file contents first: const buffer = fs.readFileSync('path'); getCryptLibraryVersion(buffer);No dependency data recorded yet.