UNPKG

@puberty-labs/clits

Version:

CLiTS (Chrome Logging and Inspection Tool Suite) is a powerful Node.js library for automated Chrome browser testing, logging, and inspection. It provides a comprehensive suite of tools for monitoring network requests, console logs, DOM mutations, and more

14 lines (13 loc) 458 B
import readline from 'readline'; export async function waitForInteractiveLogin() { return new Promise((resolve) => { const rl = readline.createInterface({ input: process.stdin, output: process.stdout, }); rl.question('\n[CLiTS-INSPECTOR] Please log in to the app in the opened browser window, then press Enter to continue...\n', () => { rl.close(); resolve(); }); }); }