Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/cli/mod.ts>Spinner#stop

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
method Spinner.prototype.stop
import { Spinner } from "https://deno.land/std@0.220.1/cli/mod.ts";

Stops the spinner.

Examples

Example 1

import { Spinner } from "https://deno.land/std@0.220.1/cli/spinner.ts";

const spinner = new Spinner({ message: "Loading..." });
spinner.start();

setTimeout(() => {
 spinner.stop();
 console.log("Finished loading!");
}, 3000);