files-read-glob.ts 194 B

12345
  1. const paths = await files.glob("src/**/*.ts");
  2. const first = paths[0] ?? "none";
  3. const content = await files.read(first);
  4. log(`read ${content.length} bytes from ${first}`);
  5. return paths.length;