eberhara / tdc2018-buffers-streams

Examples of buffers / streams used in TDC2018 - Floripa

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tdc2018-buffers-streams

Examples of buffers / streams used in TDC2018 - Floripa

Running Examples

npm install

There are 2 different examples in this repo:

Client / Server file upload

This is an example of Readable and Writable streams that reads a file.txt and uploads it via TCP to a server running on localhost:3000.

In order to see it, run the following in one console:

node server.js

And run the following command in another console:

node client.js

Transform streams

This is an example of transform streams that reads the user input from the console and transforms it to upper case. In order to see it, run the following command:

node transform-stream.js

About

Examples of buffers / streams used in TDC2018 - Floripa


Languages

Language:JavaScript 100.0%