Skip to content

polyseam/inflate_response

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

inflate_response

This module leverages the Compression Streams API to process an HTTP response which has been compressed with gzip or deflate, then save it to disk.

usage

import { inflateResponse } from "https://deno.land/x/inflate_response/mod.ts";

const myGzippedContent = await fetch(
  "https://example.com/some-gzipped-content.txt.gz",
);

// this will save the uncompressed or "inflated" content to a file named `some-gzipped-content.txt`
await inflateResponse(myGzippedContent, "./some-gzipped-content.txt");

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published