{"version":"1.0","type":"rich","title":"custom-transform-stream.js","description":"This example demonstrates a custom Node.js transform stream that computes a SHA-1 hash of incoming text data. The stream, named `ShaSum`, uses the `stream.Transform` base class and the `crypto.createHash` API to update the hash incrementally with each chunk. It writes two lines of input, then outputs the final hex digest to `process.stdout` via the `_flush` method, showing how transform streams can process data piecewise and emit a result only at the end.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-34ec0de70ed3012c889e?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}