dantil.js
function stringifyStackFrame(stackFrame, label) {
  var frameString = stackFrame.toString()

  // Colorize function name (or `label`, if provided).
  var lastSpaceIndex = frameString.lastIndexOf(' ')
  if (lastSpaceIndex !== -1) {
    return exports.colors.cyan(label || frameString.slice(0, lastSpaceIndex)) + frameString.slice(lastSpaceIndex)
  }

  // If there is no leading function, method, or type name (e.g., then root Node call: "node.js:405:3"), and `label` was provided.
  if (label) {
    return exports.colors.cyan(label) + ' ' + frameString
  }

  return frameString
}
function stringifyStackFrame(stackFrame, label) {
  var frameString = stackFrame.toString()

  // Colorize function name (or `label`, if provided).
  var lastSpaceIndex = frameString.lastIndexOf(' ')
  if (lastSpaceIndex !== -1) {
    return exports.colors.cyan(label || frameString.slice(0, lastSpaceIndex)) + frameString.slice(lastSpaceIndex)
  }

  // If there is no leading function, method, or type name (e.g., then root Node call: "node.js:405:3"), and `label` was provided.
  if (label) {
    return exports.colors.cyan(label) + ' ' + frameString
  }

  return frameString
}
function stringifyStackFrame ( stackFrame , label ) { var frameString = stackFrame . toString ( ) // Colorize function name (or `label`, if provided). var lastSpaceIndex = frameString . lastIndexOf ( ' ' ) if ( lastSpaceIndex !== - 1 ) { return exports . colors . cyan ( label || frameString . slice ( 0 , lastSpaceIndex ) ) + frameString . slice ( lastSpaceIndex ) } // If there is no leading function, method, or type name (e.g., then root Node call: "node.js:405:3"), and `label` was provided. if ( label ) { return exports . colors . cyan ( label ) + ' ' + frameString } return frameString }
Stringifies and colorizes the function name in `stackFrame`. If provided, `label` substitutes the function name in the `stackFrame` string representation.

@private
@static
@param {CallSite} stackFrame The stack frame to stringify and stylize.
@param {string} [label] The label that substitutes the function name in the `stackFrame` string representation.
@returns {string} Returns the stylized string representation of `stackFrame`.
Stringifies and colorizes the function name in stackFrame . If provided label substitutes the function name in the stackFrame string representation .