Add README.md

This commit is contained in:
2025-10-09 10:21:00 +02:00
parent 52f50e2060
commit 73bdf1851d
2 changed files with 23 additions and 2 deletions

6
app.js
View File

@@ -17,8 +17,10 @@
const fs = require('fs');
const zlib = require('zlib');
const input = fs.createReadStream('style.css'); // Replace 'yourfile.js' with the name of your JS file
const output = fs.createWriteStream('style.css.gzip'); // The output will be 'yourfile.js.gz'
const fileName = "style.css";
const input = fs.createReadStream(fileName); // Replace 'yourfile.js' with the name of your JS file
const output = fs.createWriteStream(`${fileName}.gzip`); // The output will be 'yourfile.js.gz'
input.pipe(zlib.createGzip()).pipe(output);