bracket-stream

0.0.1 • Public • Published
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

Readme

Keywords

none

Package Sidebar

Install

npm i bracket-stream

Weekly Downloads

1

Version

0.0.1

License

MIT

Last publish

Collaborators

  • andrewwinterman