CLI loading animation using Deno
import {
loading,
clearLoading,
} from "https://deno.land/x/loading_spinner@v1.0.2/mod.ts";
const loadingId = loading("loading...");
await new Promise<void>((res, _rej) => {
setTimeout(() => res(), 3000);
});
clearLoading(loadingId, "finish!!!");