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