Skip to content

Instantly share code, notes, and snippets.

@dublx
Created November 13, 2015 09:19
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save dublx/eb13926d468ddcae6ddc to your computer and use it in GitHub Desktop.
stream abort
var stream = require('stream');
process.stdin.pipe(process.stdout);
function abort(){
process.stdin.unpipe();
process.stdin.end();
}
setTimeout(abort, 3000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment