@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.

Dependencies (1)

Dev Dependencies (1)

Package Sidebar

Install

npm i @itznotabug/appexpress-zstd

Weekly Downloads

0

Version

0.0.2

License

Apache-2.0

Unpacked Size

3.16 kB

Total Files

3

Last publish

Collaborators

  • itznotabug