async convertFile(filepath) {
    if (!(await exists(filepath))) {
      return false;
    }

    const initialContent = await read(filepath);
    const newContent = this.convertContent(initialContent);

    await write(newContent, filepath);
    return true;
  }
/**
   * Convert content of a file in place
   * @param {string} filepath Path to the file to convert
   * @returns {boolean} true on success, false otherwise
   **/
Convert content of a file in place
@param {string} filepath Path to the file to convert
@returns {boolean} true on success, false otherwise
Convert content of a file in place @param { string } filepath Path to the file to convert @returns { boolean } true on success false otherwise
async convertFile(filepath) {
    if (!(await exists(filepath))) {
      return false;
    }
    const initialContent = await read(filepath);
    const newContent = this.convertContent(initialContent);
    await write(newContent, filepath);
    return true;
  }
async convertFile ( filepath ) { if ( ! ( await exists ( filepath ) ) ) { return false ; } const initialContent = await read ( filepath ) ; const newContent = this . convertContent ( initialContent ) ; await write ( newContent , filepath ) ; return true ; }
Convert content of a file in place
 @param {string} filepath Path to the file to convert
 @returns {boolean} true on success, false otherwise
Convert content of a file in place @param { string } filepath Path to the file to convert @returns { boolean } true on success false otherwise