0.0.8 • Published 11 months ago

node-streamify v0.0.8

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months ago

Streamify

streamify utilises Node Streams and Transformers to build versatile microservice application infrastructures designed for efficient data transfer and processing utilising pipe-n-filters approach.

Installation

npm i -g node-streamify, then call streamify from command line

If you have NATS up and running try streamify FILENAME nats:4222/file-transfer to make a file available for download.

You can then download it (on another machine or tty) using streamify nats:4222/file-transfer copy.txt.

Usage

streamify [[-w worker]] <source> [target]

  • -w --worker a (chain of) workload(s) implementing { Transform } from 'stream' interface. Optional, multiple choice, order matters. Built-in workers include:
    • -w gzip maps to require('node:zlib').createGzip()
    • -w slow [(N,n-N)] slows down throughput by specified ms using setTimeout
  • <source> [target] - If only one option is given it is considered to be the source. The syntax is PROTOCOL:OPTIONS. If the protocol is empty, while the value itself is not, protocol defaults to file, empty value defaults to std (stdin for source, stdout for target). Built-in protocols are:
    • std and file
    • nats: open source data layer for microservices architectures
      • streamify FILENAME nats:4222/file-transfer et vice versa

Examples

  • homemade cp:
    • streamify SOURCEFILE COPY
  • homemade cat:
    • streamify FILE
  • sed with A LOT of extra hoops (add -w's as you please):
    • FILE | streamify std RESULTFILE
0.0.8

11 months ago

0.0.7

11 months ago

0.0.6

11 months ago

0.0.5

11 months ago

0.0.4

11 months ago

0.0.3

11 months ago