function run
run(): Promise<number>

Runs qunitx repl: opens a browser page, then reads, evaluates and prints in it until the input ends. Resolves with the process exit code once everything is closed.

import * as ReplCommand from './index.ts';

// Defined, not invoked: launches a browser and reads stdin until EOF.
async function replCommand() {
  return await ReplCommand.run(); // 0 once the session has closed cleanly
}

Return Type

Promise<number>

Usage

import { run } from "lib/commands/repl/index.ts";