code: function saveContentToFile(filePrefix, content) {
    var dirPath = getWebHookDirectory();
    var filePath = path.join(dirPath, filePrefix + '#' + ASSOCIATION_FILE_NAME);
  
    // create all directories from file path
    createDirectoriesIfNeeded(dirPath);
  
    // write content to the file
    try {
      fs.writeFileSync(filePath, JSON.stringify(content, null, 2), 'utf8');
    } catch (err) {
      console.log(err);
    }
  }
docs: Save data to the the apple-app-site-association file.
  
  @param {String} filePrefix - prefix for the generated file; usually - hostname
  @param {Object} content - file content as JSON object