Compression plugin for elysia
bun add elysia-compression
import { Elysia } from 'elysia'
import { compression } from 'elysia-compression'
const app = new Elysia().use(compression()).listen(8080)
@default gzip
The type of compression to use. Can be one of the following:
gzip
deflate
@default {}
Options passed to the compression library.
Refer to the bun zlib options documentation for more details.
@default utf-8
The encoding of the response body that is being compressed.