Skip to content

Kronos-Integration/interceptor-line-tokenizer-csv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

@kronos-integration/interceptor-line-tokenizer-csv

Splits a line by a sparator into tokens

API

Table of Contents

LineTokenizerInterceptor

Extends Interceptor

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

stream

This module reads an object stream which contains a string data field. It will split this string into tokens

constructor

Creates the line tokenizer and sets the options. The following options are supported: { "separator_list" : [',', ';'], "quote_char" : '"', "use_quotes" : true, "trim" : true }

Parameters

  • opts

_transform

Reads the stream data and split it into lines.

Parameters

  • data
  • enc
  • cb

install

With npm do:

npm install @kronos-integration/interceptor-line-tokenizer-csv

license

BSD-2-Clause