Js-HowTo.com
Recently, All of the three browsers engine (Chrome, Safari, Firefox) started supporting the TransformStream API.
TransformStream allows to break down a resource that you want to receive, send, or transform into small chunks, and then process these chunks bit by bit. Recently, Firefox 102 started to support TransformStream
, which means TransformStream
is now finally usable across browsers. Transform streams allow you to pipe from a ReadableStream
to a WritableStream
, executing a transformation on the chunks, or consume the transformed result directly.
Following the example below, we demonstrate how to convert a text file content into Uppercase form.
تعليقات
إرسال تعليق