f
repl(): Task<ReplSession, ReplFailure>
input?: UserRunOptions | string | string[],
extra?: UserRunOptions
2 overloads
Opens a REPL against a live browser page and hands back the session.
T
ReplFailure = RunFailure | ReplStartFailure
Every way a REPL can fail to open: the same config failures a run has, plus the two of its own — a browser that cannot be driven over CDP, and a preload file that will not compile.
Usage
import * as mod from "lib/api/repl.ts";