Skip to content

ORESoftware/line-stream-parser

Repository files navigation

Travis build status: Build Status

CircleCI build status: CircleCI

LSP - Line Stream Parser

Take a stream of characters and split by newlines (or custom delimiter)

Install

npm i '@oresoftware/line-stream-parser'

CLI interface

 echo 'some\nchars' | parse_lines

Node.js interface

import LineParser from '@oresoftware/line-stream-parser'

process.stdin.resume().pipe(new LineParser()).on('data', d => {
  console.log(String(d));
});

About

Node.js transform stream - reads buffered data, writes buffers representing lines split by newline

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published