@ev-fns/gzip

Async gzip file

Usage no npm install needed!

<script type="module">
  import evFnsGzip from 'https://cdn.skypack.dev/@ev-fns/gzip';
</script>

README

@ev-fns/gzip

Async gzip file

  • gzip (source: string, destination = source + ".gz") => Promise<void>

Install

yarn add @ev-fns/gzip

Usage

const { gzip } = require("@ev-fns/gzip");

const filename = "./backup_file";

gzip(filename).then(() => {
  console.log("gzip finished");
});