Repository
Current version released
4 years ago
Dependencies
deno.land/x
gzip_size v0.2.1
Shows the gzipped size of the given file
CLI usage
You can install the command with the following command
deno install -qf --allow-read https://deno.land/x/gzip_size@v0.2.1/cli.ts$ gzip_size myscript.js
1.67 kB
$ gzip_size --include-original myscript.js
4.04 kB → 1.67 kB
$ gzip_size --raw myscript.js
1671
$ gzip_size --include-original --raw myscript.js
4041 → 1671API usage
import { gzipSize } from "https://deno.land/x/gzip_size@v0.2.1/mod.ts";
gzipSize(bytes);
// returns gzipped size of the bytesLicense
MIT