text: /**
   * @todo: Create a documentation for the usage
   */
  
  const replace = require("replace-in-file");
  
  //Specify the release you want to update to
  const old_release = "1.3.0";
  const release = "1.3.1";
  
  const paths = ["./**/index.html"];
  const ignored_files = ["./_site/**/*.html"];
  
  const p5_js = {
    name: "p5.js",
    files: paths,
    from: new RegExp(`https://cdn.jsdelivr.net/npm/p5@${old_release}/lib/p5.min.js`),
    to: `https://cdn.jsdelivr.net/npm/p5@${release}/lib/p5.min.js`,
    ignore: ignored_files,
  };
  const p5_sound_js = {
    name: "p5.sound.js",
    files: paths,
    from: new RegExp(`https://cdn.jsdelivr.net/npm/p5@${old_release}/lib/addons/p5.sound.min.js`),
    to: `https://cdn.jsdelivr.net/npm/p5@${release}/lib/addons/p5.sound.min.js`,
    ignore: ignored_files,
  };
  const p5_min_js = {
    name: "p5.min.js",
    files: paths,
    from: new RegExp(`https://cdn.jsdelivr.net/npm/p5@${old_release}/lib/p5.min.js`),
    to: `https://cdn.jsdelivr.net/npm/p5@${release}/lib/p5.min.js`,
    ignore: ignored_files,
  };
  const p5_sound_min_js = {
    name: "p5.sound.min.js",
    files: paths,
    from: new RegExp(`https://cdn.jsdelivr.net/npm/p5@${old_release}/lib/addons/p5.sound.min.js`),
    to: `https://cdn.jsdelivr.net/npm/p5@${release}/lib/addons/p5.sound.min.js`,
    ignore: ignored_files,
  };
  const options = [p5_js, p5_sound_js, p5_min_js, p5_sound_min_js];
  
  (async () => {
    for (const option of options) {
      try {
        await replace(option);
      } catch (error) {
        console.error("Error occurred:", error);
      }
    }
  })();
  