expressjs / compression

Node.js compression middleware
MIT License
2.77k stars 241 forks source link

Refactor shouldCompress function #202

Open Ayoub-Mabrouk opened 2 weeks ago

Ayoub-Mabrouk commented 2 weeks ago

Refactor shouldCompress function to use template literals for debug messages and const for variable declaration

UlisesGascon commented 2 weeks ago

Using ES6 syntax will require to drop support for all Node.js versions, so this PR can be included in the next major potentially.