Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/gabrielleandro0801/typescript-streams
- Owner: gabrielleandro0801
- License: mit
- Created: 2023-12-14T00:17:00.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2024-06-12T23:13:26.000Z (5 months ago)
- Last Synced: 2024-06-13T04:36:14.422Z (5 months ago)
- Topics: nodejs, streams, typescript
- Language: TypeScript
- Homepage:
- Size: 233 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.