[READ-ONLY] Mirror of https://github.com/bombshell-dev/tty. Platform independent 2D layout engine for terminal applications based on Clay bomb.sh/docs/tty
Something went wrong. Try again.
TypeScript
12345678910111213const dir = "build/npm/esm";const results: Array<{ file: string; size: number }> = [];
for await (const entry of Deno.readDir(dir)) { if (!entry.isFile) continue; let path = `${dir}/${entry.name}`; let { size } = await Deno.stat(path); results.push({ file: entry.name, size });}
results.sort((a, b) => a.file.localeCompare(b.file));console.log(JSON.stringify(results));