A lightweight shell command runner for Deno.
#!/usr/bin/env -S deno run -A
import { sh } from "jsr:@nomadshiba/sh-lite";
const result = sh`fastfetch`;
// Log with colors and other ansi codes.
console.log(result.raw);
const prefix = `CPU: `;
const start = result.indexOf(prefix) + prefix.length;
console.log("CPU:", result.slice(start, result.indexOf("\n", start)).trim());