function
bun.indexOfLine
offset?: number | bigint
): number;
Find the index of a newline character in potentially ill-formed UTF-8 text.
Like readline(), but without the IO.
function
Find the index of a newline character in potentially ill-formed UTF-8 text.
Like readline(), but without the IO.