Skip to content

Kronos-Integration/interceptor-line-tokens2obj

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

API

Table of Contents

Transform

This module will turn an array of tokens into an object.

constructor

Creates the line tokenizer and sets the options. The following options are supported: { "header" : ['a', 'b', 'c', undefined, 'e'], "strict" : false, "severity" : 'skip_record', "skip_first_row" : true }

Parameters

  • opts (optional, default {})

_transform

Reads the stream data and split it into lines.

Parameters

  • data
  • enc
  • cb

addError

Adds an error to the stream data

Parameters

  • data The current stream data
  • error The error to be added.

Tokens2ObjectInterceptor

Extends Interceptor

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