code: function initReplay() {
    const replayOption = ['record', 'replay'].find(opt => program[opt] === true)
    if (replayOption) process.env.REPLAY = replayOption
  
    process.env.REPLAY =
      replayOption || (process.env.REPLAY ? process.env.REPLAY : 'bloody')
  
    if (process.env.REPLAY !== 'bloody') require('replay')
  }
docs: Inits the replay module
  It is possible to activate it with an REPLAY environment variable
  or the "--replay" or "--record" options which take predecedence
  
  Exemples :
  
  REPLAY=record cozy-konnector-standalone
  
  or
  
  cozy-konnector-standalone --record