Skip to content

Repository files navigation

@hoajs/compress

Compress middleware for Hoa.

Installation

$ npm i @hoajs/compress --save

Quick Start

import { Hoa } from 'hoa'
import { compress } from '@hoajs/compress'

const app = new Hoa()
app.use(compress())

app.use(async (ctx) => {
  ctx.res.body = 'Hello, Hoa!'
})

export default app

Documentation

The documentation is available on hoa-js.com

Test (100% coverage)

$ npm test

License

MIT

About

Compress middleware for Hoa.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages