Libraries like JSZip allow you to generate and download a zip file entirely in the browser.
Use the command zip Cbaoddq.zip Cbaoddq.txt . 3. Creating a ZIP via Code (For Developers)
If you are trying to automate this process "as a text" (scripting), here are common methods: