Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@antongolub
Copy link
Collaborator

const p = $`echo "hello"`
  .pipe(
    new Transform({
      transform(chunk, encoding, callback) {
        callback(null, String(chunk).toUpperCase())
      },
    })
  )
  .pipe(fs.createWriteStream('/tmp/output2.txt'))
  
// p is a WriteStream instance with PromiseLike mixin
await p // is void
  • Tests pass
  • Appropriate changes to README are included in PR

@antongolub antongolub requested a review from antonmedv October 29, 2024 20:30
@antonmedv antonmedv merged commit 3871229 into google:main Oct 29, 2024
21 checks passed
antongolub added a commit to antongolub/zx that referenced this pull request Oct 31, 2024
antongolub added a commit to antongolub/zx that referenced this pull request Oct 31, 2024
@antongolub antongolub deleted the fix-pipe-stream-promisify branch October 31, 2024 09:52
antonmedv pushed a commit that referenced this pull request Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants