MongoDB Client Encryption
The Node.js wrapper for
Note This library provides encryption functionality for the MongoDB Node.js driver but is not intended to be consumed in isolation. The public API that uses the functionality in this library is available in the
MongoDB Node.js Driver Version Compatibility
Only the following version combinations with the MongoDB Node.js Driver are considered stable.
You can install
mongodb-client-encryption with the following:
npm install mongodb-client-encryption
Run the following command to build libmongocrypt and setup the node bindings for development:
We lint both the c++ bindings and the Typescript.
To lint the Typescript, you can run
npm run check:eslint -- --fix. To lint the c++, run
npm run clang-format.
The unit tests require the binding to be built. Run
npm run rebuild to build the addon from the c++ source. Then the tests can be run with
Note: changes to c++ source are not automatically re-compiled. One needs to rebuild the bindings after each change.