Socket
Book a DemoInstallSign in
Socket

egg-compress-middleware

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

egg-compress-middleware

an egg compress middleware

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

egg-compress-middleware

an eggjs middleware to set gzip or brotli encodings.

How to use

$ npm i egg-compress-middleware

Then create a file in middleware directory to import the module.

// app/middleware/compress.js
const eggCompress =  require('egg-compress-middleware')

module.exports = (options) => {
  return eggCompress
}

Then enable the middleware in yout config files.

FAQs

Package last updated on 19 Apr 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts