Skip to content
Experimenting with the Streams spec
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitattributes
.gitignore
LICENSE Initial commit Feb 14, 2019
README.md Update README.md Mar 19, 2019
index.html
index.js Updated with working solution Mar 7, 2019
json-response-small.ndjson
json-response.ndjson
main.js
package-lock.json
package.json

README.md

Experimenting with the Streams API

The code in this repo is used as an example for an article on my blog at deanhume.com.

Streams API

The benefit of using streams is that if you are sending large chunks of data over the web, you can start processing the data immediately as you receive it, without having to wait for the full download to complete. For example, if you think of a large video file and imagine how long it might take to download the whole file. Using a stream allows you to download only the small amount of data that you need to view the video instead of the whole file - this means that you can view the video as quickly as the network takes to get you just those bytes.

In this article, I run through a simple example and show you how to get started with the Streams API in no time!

You can’t perform that action at this time.