Optionaldata: anyOptionalcursor: anyOptionalopts: {}Optionalopts: {}Optionalopts: { sourceLocation?: any }Optionalopts: { includeLocation?: any; sourceLocation?: any }Optionalcontext: {}Peek at the next line without consuming it.
Optionaldirect: booleanWhen true, bypass processLine and return the raw stack top.
The next line, or undefined if there are no more lines.
Peek at the next num lines without consuming them.
Optionalnum: numberOptionaldirect: booleanRead lines until a termination condition is met.
Optionaloptions: {OptionalbreakOnBlankLines?: booleanStop on blank lines.
OptionalbreakOnListContinuation?: booleanStop on a list continuation (+).
Optionalcontext?: stringName used in unterminated-block warnings.
Optionalcursor?: CursorStarting cursor for unterminated-block warnings.
OptionalpreserveLastLine?: booleanPush the terminating line back.
OptionalreadLastLine?: booleanInclude the terminating line in result.
OptionalskipFirstLine?: booleanSkip the first line before scanning.
OptionalskipLineComments?: booleanSkip line comments.
OptionalskipProcessing?: booleanDisable line preprocessing for this call.
Optionalterminator?: stringLine at which to stop.
Optionalfilter: FunctionOptional function(line) returning true to break.
Returns the remaining lines in forward order (first remaining line at index 0). The returned object is a mutable proxy so that element assignments like
reader.lines[i] = newValueare reflected back into the internal reversed stack.