@range3/match-transform

1.0.1 • Public • Published

@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

Readme

Keywords

Package Sidebar

Install

npm i @range3/match-transform

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

3 kB

Total Files

4

Last publish

Collaborators

  • range3