Node.js programming tips

Safely detect if a Node.js module is installed before using require() to load it: Normally you just use "require" to load a module. Sometimes you need to first check the module is available, to avoid an error if it isn't, or to print a useful error.