Cancellable async generators
I thought this was one of the more interesting things I’ve written recently. It seems pretty simple from the small amount of code but it combines a couple things that I rarely use – Generator functions and Abort Controllers (outside of Fetch). This is a cancellable async generator function that can be used to run […]
April 17, 2025
Post a file stream from S3 to an API with Node
Ever needed to send a file that lives on S3 to an API endpoint? You could download the file and then send it, but that requires multiple steps and involves saving the file to the local file system. A better approach is to use streams, where you can pipe the data from S3 directly to […]
April 15, 2025