Data transfer across every medium
Run the following to install Spout:
npm install spout --save
The most basic component is
pipe - Pipes are functions that accept data and move it onwards to a target. Targets can be other pipes, components or simple functions. Data is transferred throughout Spout within arrays.
const pipe = ;const p = ;;;// Asynchronously logged: [1, 2, 3, 4, 5]
Pipes can be connected to other pipes and components. One such component is
transform, which is essentially a pipe with a constructor more suited for providing a transform function. Each point of data is passed through the transformer.
const pipe transform = ;const t = ;;// Asynchronously logged: [2, 4]const p = ;; // You can pass a single data point (non-array) as well// Asynchronously logged: