0.0.2 • Published 1 year ago

@itznotabug/appexpress-zstd v0.0.2

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 year ago

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.

0.0.2

1 year ago

0.0.1

1 year ago