code: function finish(code) {
              if (leftover) {
                  handleLogLine(null, leftover, opts, stylize);
                  leftover = '';
              }
              callback(code);
          }
docs: intentionally global