Skip to content

Stream support #54

Description

@austinkelleher

I want to mock a superagent request that creates pipes the data to a write stream e.g.

const targz = require('tar.gz2');
const request = require('superagent');

const tarball = 'some-file.tgz';
const read = request.get(tarball);
const write = targz().createWriteStream(dir);

const stream = read.pipe(write).on('finish', doSomething);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions