Cross-platform shell tools for Deno and Node.js inspired by zx.
import $ from "dax";
// run a command
await $`echo 5`; // outputs: 5
// capture output
const branch = await $`git rev-parse --abbrev-ref HEAD`.text();
// make a request
const data = await $.request("https://plugins.dprint.dev/info.json").json();
// prompt for input
const name = await $.prompt("What's your name?");
$, but it's not mandatory to use this.