https://github.com/lpil/spinner
  
  
     
    https://github.com/lpil/spinner
  
        Last synced: 8 months ago 
        JSON representation
    
- Host: GitHub
 - URL: https://github.com/lpil/spinner
 - Owner: lpil
 - Created: 2024-01-07T23:28:06.000Z (almost 2 years ago)
 - Default Branch: main
 - Last Pushed: 2025-01-08T12:21:12.000Z (10 months ago)
 - Last Synced: 2025-03-14T07:37:25.634Z (8 months ago)
 - Language: Gleam
 - Size: 96.7 KB
 - Stars: 24
 - Watchers: 3
 - Forks: 4
 - Open Issues: 0
 - 
            Metadata Files:
            
- Readme: README.md
 - Changelog: CHANGELOG.md
 
 
Awesome Lists containing this project
- awesome-gleam - spinner - [📚](https://hexdocs.pm/spinner/) - Animated progress spinners for your console (Packages / Command Line)
 
README
          # spinner
[](https://hex.pm/packages/spinner)
[](https://hexdocs.pm/spinner/)

Animated progress spinners for your console.
Works on both Erlang and JavaScript runtimes.
```sh
gleam add spinner
```
```gleam
import spinner
import gleam/io
import gleam_community/ansi
pub fn main() {
  let spinner =
    spinner.new("Reticulating 3-Dimensional Splines")
    |> spinner.with_colour(ansi.yellow)
    |> spinner.start
  // Do some stuff while the spinner runs...
  // The spinner text can be changed
  spinner.set_text(spinner, "Collecting Meteor Particles")
  // Finish it when you're done
  spinner.stop(spinner)
  io.println("Done!")
}
```
Further documentation can be found at .