docs: function find(startPath, filter) {
      /** @type {string[]} */
      let results = [];
  
      if (!fs.existsSync(startPath)) {
          throw new Error(`${startPath} does not exist`);
      }
  
      const files = fs.readdirSync(startPath);
      for (let i = 0; i < files.length; i++) {
          const filename = path.join(startPath, files[i]);
          const stat = fs.lstatSync(filename);
          if (stat.isDirectory()) {
              results = results.concat(find(filename, filter)); // recurse
          } else if (filename.indexOf(filter) >= 0) {
              results.push(filename);
          }
      }
  
      return results;
  }