How to use the event-stream.readArray function in event-stream

To help you get started, we’ve selected a few event-stream 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 laconalabs / elliptical-datetime / test / util.js View on Github external
function parse(phrase, langs, input, expectedDate, done) {
  function callback(err, data) {
    expect(data).to.have.length(3);
    expect(data[1].data.result.test).to.equalDate(expectedDate);
    expect(data[1].data.result.test).to.equalTime(expectedDate);
    done(null, data[1].data);
  }
  var parser = new lacona.Parser();
  parser.sentences = [phrase()];
  parser.langs = langs;

  es.readArray([input])
    .pipe(parser)
    .pipe(es.writeArray(callback));
}
github Janpot / gulp-htmlbuild / example / gulpfile.js View on Github external
header: function (block) {
        es.readArray([
          ''
        ].map(function (str) {
          return block.indent + str;
        })).pipe(block);
      }
    }))
github ServiceStackApps / ReactChatApps / src / ReactChat / ReactChat / gulpfile.js View on Github external
function pipeTemplate(block, template) {
        eventStream.readArray([
            template
        ].map(function (str) {
            return block.indent + str;
        })).pipe(block);
    }
github ServiceStack / Templates / src / ServiceStackVS / AngularJSApp / AngularJSApp / gulpfile.js View on Github external
function pipeTemplate(block, template) {
        eventStream.readArray([
            template
        ].map(function (str) {
            return block.indent + str;
        })).pipe(block);
    }
github meeroslav / gulp-inject-partials / src / index.spec.js View on Github external
function src(files, opt) {
  opt = opt || {};
  return es.readArray(files.map(function (file) {
    return fixture(file, opt.read);
  }));
}

event-stream

construct pipes of streams of events

MIT
Latest version published 6 years ago

Package Health Score

61 / 100
Full package analysis