Skip to content

Latest commit

 

History

History
11 lines (9 loc) · 492 Bytes

lines.md

File metadata and controls

11 lines (9 loc) · 492 Bytes

Stream transform for line-oriented text streams

import * as ez from 'ez-streams'

  • transform = ez.transforms.lines.parser(options)
    creates a parser transform. options is reserved for future use.
  • transform = ez.transforms.lines.formatter(options)
    creates a formatter transform. options.eol defines the line separator. It is set to \n by default. options.extra indicates if an extra line separator must be emitted or not at the end. It is false by default.