Transform stream by reading it line by line.
$ yarn add stroki
const lineStream: () => Transform
import { createReadStream, createWriteStream } from 'fs'
import { lineStream } from 'stroki'
const readStream = createReadStream('./lines.txt')
readStream
.pipe(lineStream())
.on('data', (chunk: Buffer) => {
console.log('line:', chunk.toString('utf8'))
})