@range3/match-transform
v1.0.1
Published
line-by-line stream str.match(regexp)
Downloads
3
Readme
@range3/match-transform
line-by-line stream str.match(regexp)
Install
$ npm install @range3/match-transform
Usage
const fs = require('fs')
const MatchTransform = require('@range3/match-transform')
const matchTransform = new MatchTransform(
/^.*range3.*$/, // pattern
// 'utf8' default encoding
)
fs.createReadStream(__filename)
.pipe(matchTransform)
.on('match', match => {
console.log(match)
})
.pipe(process.stdout)
License
MIT