How to use the union.BufferedStream function in union

To help you get started, we’ve selected a few union examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github opsmezzo / quill / lib / quill / composer / remote.js View on Github external
exports.publish = function (system) {
  var tarball = new BufferedStream();

  //
  // Helper function which pipes `tarball` to the `quill.systems` client.
  // If tarball is a string, then a filestream will be created.
  //
  function uploadTarball(err) {
    if (err) {
      return tarball.emit('error', err);
    }

    tarball.emit('upload:start');
    tarball.pipe(quill.systems.upload(system.name, system.version, function (err) {
      return err
        ? tarball.emit('error', err)
        : tarball.emit('upload:end');
    }));

union

A hybrid buffered / streaming middleware kernel backwards compatible with connect.

MIT
Latest version published 4 months ago

Package Health Score

83 / 100
Full package analysis