spinx - A Simple Terminal Spinner for Deno
Usage
More examples can be found under examples/
import { spin, Spinner } from "../mod.ts";
const spinner = new Spinner({
message: "Now Loading",
});
await spin(async () => {
const p = Deno.run({
cmd: ["sleep", "2"],
stdout: "piped",
});
await p.status();
await p.close();
}, spinner);