The main logic for finding matches in files and running plugins against them.
It uses ReadableStreams heavily, so make sure to be acquainted with them.
An easy way to create ReadableStreams is to use ReadableStream.from(). And an easy way to consume them is to use a for await...of loop.