New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

zstandard

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zstandard

zstandard bindings for Node

latest
Source
npmnpm
Version
0.1.3
Version published
Maintainers
1
Created
Source

node-zstandard

zstandard bindings for Node

Getting started

Prerequisites

This project requires the zstandard library (libzstd) to be installed on your system. Generally, you can install it via your system's package manager, but you can always compile and install it yourself.

Installation

Add the zstandard module to your project:

$ npm install zstandard

Usage

var zstd = require('zstandard');

let buf = new Buffer();

// pass a buffer and get back a compressed buffer
let compressed = zstd.compress(buf);

// pass a compressed buffer and get back the original data
let decompressed = zstd.decompress(compressed);

API

compress(data: Buffer): Buffer

Compresses data. Takes and returns a Buffer object.

decompress(data: Buffer): Buffer

Decompresses data. Takes and returns a Buffer object.

Keywords

zstd

FAQs

Package last updated on 02 Sep 2016

Did you know?

Socket

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