Socket
Socket
Sign inDemoInstall

mongodb-client-encryption

Package Overview
Dependencies
38
Maintainers
6
Versions
59
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    mongodb-client-encryption

Official client encryption module for the MongoDB Node.js driver


Version published
Maintainers
6
Created

Readme

Source

MongoDB Client Encryption

The Node.js wrapper for libmongocrypt

Installation

You can install mongodb-client-encryption with the following:

npm install mongodb-client-encryption

Development

Setup

Run the following command to build libmongocrypt and setup the node bindings for development:

bash ./etc/build-static.sh
Linting

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.

Testing

Some tests require a standalone server to be running with authentication enabled. Set up a single server running with the following conditions:

paramvalue
hostlocalhost
port27017

This is the standard setup for a standalone server with no authentication.

Run the test suite using:

npm test

FAQs

Last updated on 07 Aug 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc