1.1.1 • Published 1 year ago
@rdfc/buffer-processor-ts v1.1.1
buffer-processor-ts
This repository contains a processor to buffer data for the RDF Connect framework. At a certain interval, the processor will pipe through a given amount of data from the incoming stream to the outgoing stream.
Configuration
The processor can be configured using the following parameters:
incoming: The incoming stream to buffer.outgoing: The outgoing stream to pipe the buffered data to.interval: The interval at which the processor should pipe through data from the incoming stream. The default value is1000milliseconds.amount: The amount of data that should be piped through from the incoming stream at each interval. Use0to pipe through all available data. The default value is0.minAmount: The minimum amount of data that should be piped through from the incoming stream at each interval. The default value is1.
Installation
npm install
npm run buildOr install from NPM:
npm install @rdfc/buffer-processor-tsExample
An example configuration of the processor can be found in the example directory.
You can run this example by executing the following command:
npx js-runner example/pipeline.ttlTo enable all debug logs, add DEBUG=* before the command:
DEBUG=* npx js-runner example/pipeline.ttl