An extremely fast JavaScript native (bun) line reader for use with arbitrary files. This is included as a utility for manual data pre-processing.
for await (let line of sm.io.readlines('myfile.txt')) { console.log(line.split(',')[0])}
A generator of each line in the file
The file to open and asynchronously read from
The label of the encoder
The size of the buffer to read into before flushing to the user
Generated using TypeDoc
An extremely fast JavaScript native (bun) line reader for use with arbitrary files. This is included as a utility for manual data pre-processing.
Example
Returns
A generator of each line in the file