Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gabrielleandro0801/typescript-streams

Repository with examples of Streams in Typescript
https://github.com/gabrielleandro0801/typescript-streams

nodejs streams typescript

Last synced: 6 days ago
JSON representation

Repository with examples of Streams in Typescript

Awesome Lists containing this project

README

        

# Typescript Streams
Repository with examples of Streams in Typescript

## V1 - File Generator
This example shows the difference between writing a 1 million lines file at once and by using Streams.

### At once
![Image 1](https://github.com/gabrielleandro0801/typescript-streams/blob/master/images/v1/v1-file-generator-without-streams-1.png)

![Image 2](https://github.com/gabrielleandro0801/typescript-streams/blob/master/images/v1/v1-file-generator-without-streams-2.png)

![Image 3](https://github.com/gabrielleandro0801/typescript-streams/blob/master/images/v1/v1-file-generator-without-streams-3.png)

### By using Streams
![Image 1](https://github.com/gabrielleandro0801/typescript-streams/blob/master/images/v1/v1-file-generator-with-streams-1.png)

![Image 2](https://github.com/gabrielleandro0801/typescript-streams/blob/master/images/v1/v1-file-generator-with-streams-2.png)

![Image 3](https://github.com/gabrielleandro0801/typescript-streams/blob/master/images/v1/v1-file-generator-with-streams-3.png)

## V2 - Server
This example shows the difference between returning a 1 million lines file at once and by using streams on a Web Server.

## V3 - File Copier
This example shows the difference between copying a 1 million lines file at once and by using streams.

### At once
![Image 1](https://github.com/gabrielleandro0801/typescript-streams/blob/master/images/v3/v3-file-copier-without-streams-1.png)

![Image 2](https://github.com/gabrielleandro0801/typescript-streams/blob/master/images/v3/v3-file-copier-without-streams-2.png)

![Image 3](https://github.com/gabrielleandro0801/typescript-streams/blob/master/images/v3/v3-file-copier-without-streams-3.png)

### By using Streams
![Image 1](https://github.com/gabrielleandro0801/typescript-streams/blob/master/images/v3/v3-file-copier-with-streams-1.png)

![Image 2](https://github.com/gabrielleandro0801/typescript-streams/blob/master/images/v3/v3-file-copier-with-streams-2.png)

![Image 3](https://github.com/gabrielleandro0801/typescript-streams/blob/master/images/v3/v3-file-copier-with-streams-3.png)

## V4 - CSV Copier
This example shows transformation of a 1 million lines CSV file into a JSON file.