You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
Sven Slootweg fd593aea4f Update repository URL to organization 5 years ago
.gitignore Initial commit 5 years ago
README.md Add documentation, fix initial version 5 years ago
index.js Initial commit 5 years ago
package.json Update repository URL to organization 5 years ago

README.md

@ppstreams/propagate-abort

A simple abort handler for ppstreams that just passes on an incoming abort notification to the source stream.

Example:

"use strict";

const propagateAbort = require("@ppstreams/propagate-abort");

module.exports = function makeStream() {
	return {
		description: `pass-through stream`,
		read: (source) => {
			/* This example stream just passes through the upstream value */
			return source.read();
		},
		abort: propagateAbort
	}
};