Socket
Socket
Sign inDemoInstall

@mongodb-js/zstd

Package Overview
Dependencies
4
Maintainers
29
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @mongodb-js/zstd

Zstandard compression library for Node.js


Version published
Maintainers
29
Created

Changelog

Source

0.0.6 (2022-05-18)

Features

  • add readme (833aa92)
  • update readme (49ac44e)

Readme

Source

@mongodb-js/zstd

Zstandard compression library for Node.js

Installation

npm install @mongodb-js/zstd

Support matrix

node12node14node16node17
Windows x64
Windows arm64
macOS x64
macOS arm64
Linux x64 gnu
Linux arm gnu
Linux arm64 gnu
FreeBSD x64

API

export function compress(buffer: Buffer | ArrayBuffer | Uint8Array, level: number): Promise<Buffer>
export function decompress(buffer: Buffer): Promise<Buffer>

Bugs / Feature Requests

Think you’ve found a bug? Want to see a new feature in @mongodb-js/zstd? Please open a case in our issue management tool, JIRA:

Support / Feedback

For issues with, questions about, or feedback for the library, please look into our support channels. Please do not email any of the driver developers directly with issues or questions - you're more likely to get an answer on the MongoDB Community Forums.

Change Log

Change history can be found in HISTORY.md.

Usage

import { compress, decompress } from '@mongodb-js/zstd';

(async () => {
  const buffer = Buffer.from('test');
  const compressed = await compress(buffer, 10);
  const decompressed = await decompress(compressed);
})();

FAQs

Last updated on 18 May 2022

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