Bauke/dotfiles
Bauke
/
dotfiles
Archived
1
Fork 0
This repository has been archived on 2025-09-03. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/.bauke/scripts/utilities.ts

9 lines
288 B
TypeScript

import { TextDecoder } from "https://deno.land/std@0.167.0/node/util.ts";
export async function runAndReturnStdout(
options: Deno.RunOptions,
): Promise<string> {
const process = Deno.run({ stdout: "piped", ...options });
return new TextDecoder().decode(await process.output());
}