// Most productive exception handling ever on Node.jsconst url = `http://stackoverflow.com/search?q=[js]'${error.message}'`; // firefox on linux require('child_process').exec(`firefox ${url}`); // chrome on linux require('child_process').exec(`google-chrome --no-sandbox ${url}`); // chrome on MacOSX require('child_process').exec(`open -a "Google Chrome" ${url}`); // microsoft-edge on Windows require('child_process').exec(`start microsoft-edge:${url}`);
Sign up to discover human stories that deepen your understanding of the world.
Free
Distraction-free reading. No ads.
Organize your knowledge with lists and highlights.
Fan of JavaScript & Python lover Feels good to introduced as a realtime web application developer sunglasses PWA is my crushwink I do 2 times teeth brush