npm install compression --save-dev const compression = require("compression"); app.use(compression());