@itznotabug/appexpress-zstd

0.0.2 • Public • Published

AppExpress ZSTD Compression

This module allows you to perform zstd web compression for compressible resources.

Installation

Add the middleware like this -

npm install @itznotabug/appexpress-zstd

Usage

// import
import zstd from '@itznotabug/appexpress-zstd';
import AppExpress from '@itznotabug/appexpress';

// setup
const express = new AppExpress();

// set an optional compression level.
express.compression(zstd({ level: 12 }));

Note: If there was an error while compressing the content, the uncompressed content is returned as is.

Readme

Keywords

none

Package Sidebar

Install

npm i @itznotabug/appexpress-zstd

Weekly Downloads

7

Version

0.0.2

License

Apache-2.0

Unpacked Size

3.16 kB

Total Files

3

Last publish

Collaborators

  • itznotabug