bracket-stream

given start and end symbols, emit the text between them as a single data event.

npm install bracket-stream
1 downloads in the last week
4 downloads in the last month
var bracket = new Bracket('<', '>')

// file.txt contents: 
// "<p> what a wonderful day to be <strong> bold </strong> </p>"

var sample = fs.createReadStream('file.txt')

sample.pipe(bracket)
  .on('data', function(data) {
    console.log(data)
  })

Results:

p
strong
/strong
/p
npm loves you