Skip to content

Instantly share code, notes, and snippets.

@tytrdev
Last active December 26, 2019 02:25
Show Gist options
  • Save tytrdev/2c03190f5fb977f12156ded58f3bfcbb to your computer and use it in GitHub Desktop.
Save tytrdev/2c03190f5fb977f12156ded58f3bfcbb to your computer and use it in GitHub Desktop.
Medium code snipper
const duplex = new MyDuplexStream(numberOfBytes);
const writeStream = getWriteStreamSomehow();
duplex.pipe(writeStream);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment