helpers.js
function customLog(message) {
  const trimmed = message.trim()
  const limit = trimmed.indexOf('\n')
  if (limit === -1) {
    fancyLog(trimmed)
  } else {
    const title = trimmed.slice(0, limit).trim()
    const details = trimmed.slice(limit).trim()
    fancyLog(`${title}${('\n' + details).replace(/\n/g, '\n  ')}`)
  }
}
function customLog(message) {
  const trimmed = message.trim()
  const limit = trimmed.indexOf('\n')
  if (limit === -1) {
    fancyLog(trimmed)
  } else {
    const title = trimmed.slice(0, limit).trim()
    const details = trimmed.slice(limit).trim()
    fancyLog(`${title}${('\n' + details).replace(/\n/g, '\n  ')}`)
  }
}
function customLog ( message ) { const trimmed = message . trim ( ) const limit = trimmed . indexOf ( '\n' ) if ( limit === - 1 ) { fancyLog ( trimmed ) } else { const title = trimmed . slice ( 0 , limit ) . trim ( ) const details = trimmed . slice ( limit ) . trim ( ) fancyLog ( ` ${ title } ${ ( '\n' + details ) . replace ( / \n / g , '\n  ' ) } ` ) } }
Custom long log format using fancy-log
@param {string} message
Custom long log format using fancy - log