0.0.1 • Published 11 years ago
bracket-stream v0.0.1
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
0.0.1
11 years ago