Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including argo-gzip with all npm packages installed. Try it out:

var argoGzip = require("argo-gzip")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

argo-gzip v0.2.1

Gzip package for Argo

Argo Gzip Package

Now you can gzip with a simple argo middleware!

Usage.

    var argo = require("argo"),
        gzip = require("argo-gzip");

    argo()
        .use(gzip)
        .target("http://www.endpointAPI.com/");

//Now all request that come in with a "Accept-Encoding:gzip" header will be zipped
//All responses that are from the backend server that are gzipped are handled now as well

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free