Created
August 4, 2016 19:42
-
-
Save hnry/10c37810251e9a3ea2f9bccc2c0e62b9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new stream.Duplex({ | |
read(size) {}, | |
write(chunk, encoding, callback) { | |
this.push(chunk) | |
callback() | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment