using puppeteer, i wrote a code that will be executed from the command line and i want to open the browser, navigate to a web page, keep the browser open and retain control to the command line.
// index.js
(async() => {
const browser = await puppeteer.launch({
headless: false,
});
const page = await browser.newPage();
await page.goto("https://stackoverflow.com");
})();
but while the browser is open, the command line never gains back the control.
how can i make the code not to block the command line? (i do not want to execute the code background from the command line (appending & to the execution command))