code: function getCallerFile () {
    const prepareStackTraceOrig = Error.prepareStackTrace
    let callerfile = 'unknown'
  
    try {
      Error.prepareStackTrace = function (error, stack) { return stack } // eslint-disable-line handle-callback-err
  
      const err = new Error()
      let currentfile = err.stack.shift().getFileName()
  
      // pop off the error stack until we find a file that is not this one :)
      while (err.stack.length) {
        callerfile = err.stack.shift().getFileName()
        if (currentfile !== callerfile) break
      }
    } finally {
      Error.prepareStackTrace = prepareStackTraceOrig
    }
  
    return callerfile
  }
docs: Call this method to get the file path that contains the method that called the method this method was called in. simple.
  Shamelessly cribbed from http://stackoverflow.com/questions/16697791/nodejs-get-filename-of-caller-function
  @returns {string}