Skip to content

lwsjs/compress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

view on npm npm module downloads Gihub repo dependents Gihub package dependents Node.js CI js-standard-style

lws-compress

Response compression middleware for lws. For usage instructions, see here.

Adds the following options to lws.

--compress, -z                 Serve gzip-compressed resources, where applicable.
--compress.threshold number    Minimum response size in bytes to apply compression. Defaults to 1024.

© 2016-21 Lloyd Brookes <[email protected]>.