@treecg/connector-file
v1.1.1
Published
File connectors, allowing data to flow through a file (on append or on replace)
Downloads
9
Maintainers
Keywords
Readme
@treecg/connector-file
Connector that communicates via a filesystem.
Options
type
: type of the connector created, to use this connector "file" is requiredpath
: required parameter denoting the path of the file used for communicationonReplace
: required parameter denoting how the file is used to communicate, possible values:true
: the entire file is read parsed and sent on changefalse
: the appended content is parsed and sent on append
readFirstContent
: optional parameter, only used ifonReplace
equalstrue
. When Reader is started the current content is used for the first message.encoding
: optional parameter used to denote the encoding of the file (defaults toutf-8
)