Skip to content

Kronos-Integration/interceptor-line-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2,244 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm License bundlejs downloads GitHub Issues Build Status Styled with prettier Commitizen friendly Known Vulnerabilities

API

Table of Contents

LineParserInterceptor

Extends StreamTransformInterceptor

This interceptor cares about the handling of the messages. It will add the hops and copies the messages

Transform

This module reads a stream and split it into lines. The out put stream will be an object stream

constructor

Creates the line parser and sets the options. The following options are supported: { "allow_new_line_in_cell" : true, "line_separator" : "\n", "quote_char" : '"' "skip_empty_lines" : true }

Parameters

  • opts (optional, default {})

_transform

Reads the stream data and split it into lines.

Parameters

  • data
  • enc
  • cb

_flush

Returns the rest as line

Parameters

  • cb

_pushLine

Pushes a line object onto the stream

Parameters

  • data

About

Splits node streams into lines

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 5