【问题标题】:Piping to a stream that needs to be both readable and writable管道到需要可读和可写的流
【发布时间】:2016-02-17 02:57:20
【问题描述】:

我希望能够从src 流传输到something 流。我知道something 需要是一个可写流,因为它正在通过管道传输,但是,它也需要是一个可读流,以便它可以通过管道传输到somethingElse'. What shouldsomething` 返回以使其工作?

example.task('taskOne', function() {
  return example
    .src('pathName')
    .pipe(something())
    .pipe(somethingElse())
});

【问题讨论】:

    标签: node.js stream


    【解决方案1】:

    解决了!

    利用节点模块through2 解决了这个问题。

    【讨论】:

      猜你喜欢
      • 2021-03-03
      • 2017-08-25
      • 2018-06-04
      • 1970-01-01
      • 2018-03-12
      • 1970-01-01
      • 2013-07-23
      • 2020-05-23
      • 1970-01-01
      相关资源
      最近更新 更多