0.0.7 • Published 5 months ago

elysia-compression v0.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

elysia-compression

Compression plugin for elysia

Installation

bun add elysia-compression

Example

import { Elysia } from 'elysia'
import { compression } from 'elysia-compression'

const app = new Elysia().use(compression()).listen(8080)

Config

type

@default gzip

The type of compression to use. Can be one of the following:

  • gzip
  • deflate

options

@default {}

Options passed to the compression library.

Refer to the bun zlib options documentation for more details.

encoding

@default utf-8

The encoding of the response body that is being compressed.

0.0.7

5 months ago

0.0.5

7 months ago

0.0.4

7 months ago

0.0.6

7 months ago

0.0.3

10 months ago

0.0.2

10 months ago

0.0.1

10 months ago