I am creating NodeJS based crawler, which is working with node-cron package and I need to prevent entry script from exiting since application should run forever as
node-cron
I think the best way to prevent exit from process is:
process.stdin.resume();
I found this solution here https://stackoverflow.com/a/14032965/2094090 and it works fine.