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?