summaryrefslogtreecommitdiff
path: root/std/prettier/testdata/echox.ts
blob: 68c54b9995f5ab46b344e977ccf55e3435736ec2 (plain)
1
2
3
4
5
6
7
8
async function echox(args: string[]) {
  for (const arg of args) {
    await Deno.stdout.write(new TextEncoder().encode(arg));
  }
  Deno.exit(0);
}

echox(Deno.args.slice(1));