sindresorhus/opn

Do you want to work on this issue?

You can request for a bounty in order to promote it!

process.exit kills browser? #189

axi92 posted onGitHub

With this code it is not working:

const open = require('open');

open('google.com');
process.exit(0);

If I remove the exit it is working. But I need an exit in my node script after the open() is called.

Workaround would be setTimeout and exit with a delay. Is that the way to go?


🧟

It's 2024, and this is still an issue - any possibility of this being fixed? 🤞

posted by ben-harris-5 11 months ago

Fund this Issue

$0.00
Funded
Only logged in users can fund an issue

Pull requests