A node.js stream that stops piping a stream when a pattern is reached