code: function(nodemon) {
              nodemon.on('log', function(event) {
                console.log(event.colour);
              });
  
              // opens browser on initial server start
              nodemon.on('config:update', function() {
                // Delay before server listens on port
                setTimeout(function() {
                  require('open')('http://localhost:8080');
                }, 1000);
              });
  
              // refreshes browser when server reboots
              nodemon.on('restart', function() {
                // Delay before server listens on port
                setTimeout(function() {
                  require('fs').writeFileSync('.rebooted', 'rebooted');
                }, 3000);
              });
            }
docs: omit this property if you aren't serving HTML files and don't want to open a browser tab on start