Take a stream of characters and split by newlines (or custom delimiter)
npm i '@oresoftware/line-stream-parser'
echo 'some\nchars' | parse_lines
import LineParser from '@oresoftware/line-stream-parser'
process.stdin.resume().pipe(new LineParser()).on('data', d => {
console.log(String(d));
});
Component of the oresoftware organization.
Cross-language contracts in this organization are governed by human-authored TypeSpec and human-authored JSON Schema Draft 2020-12 as independent peer authorities, with parity enforced by ORESoftware/typespec-json-schema-validator; generated schemas and clients are comparison evidence only, never a third authority.