I\'m writing a web app in Node. If I\'ve got some JS file db.js with a function init in it how could I call that function from the command line?
db.js
init
I do a IIFE, something like that:
(() => init())();
this code will be executed immediately and invoke the init function.