An open API service indexing awesome lists of open source software.

https://github.com/d2verb/spinx

↻ A Simple Terminal Spinner for Deno
https://github.com/d2verb/spinx

Last synced: 16 days ago
JSON representation

↻ A Simple Terminal Spinner for Deno

Awesome Lists containing this project

README

          

# spinx - A Simple Terminal Spinner for Deno

[![ci](https://github.com/d2verb/spinx/actions/workflows/ci.yml/badge.svg)](.github/workflows/ci.yml)
[![deno version](https://img.shields.io/badge/deno-%5E1.27.0-green?logo=deno)](https://deno.land)
[![deno.land](https://img.shields.io/github/v/tag/d2verb/spinx?style=flat&logo=deno&label=deno.land&color=steelblue&sort=semver)](https://deno.land/x/spinx)
[![codecov](https://codecov.io/gh/d2verb/spinx/branch/main/graph/badge.svg?token=LF5DPSP2X8)](https://codecov.io/gh/d2verb/spinx)
[![LICENSE](https://img.shields.io/badge/license-MIT-brightgreen)](LICENSE)

## Usage

More examples can be found under [examples/](examples/)

```ts
import { spin, Spinner } from "https://deno.land/x/spinx@v0.0.2/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);
```

## LICENSE

[MIT](./LICENSE)