mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 19:15:35 +08:00
# Conflicts: # jsowell-ui/.env.development # jsowell-ui/.env.staging # jsowell-ui/bin/build-sit.bat # jsowell-ui/bin/build.bat # jsowell-ui/src/api/adapayMember/adapayMember.js # jsowell-ui/src/api/pile/merchant.js # jsowell-ui/src/router/index.js # jsowell-ui/src/views/financial/financeDetail.vue # jsowell-ui/src/views/financial/merchant.vue # jsowell-ui/src/views/homeIndex/homeIndex.vue # jsowell-ui/src/views/login.vue # jsowell-ui/src/views/pile/basic/detail.vue # jsowell-ui/src/views/pile/station/components/SiteInfo.vue # jsowell-ui/src/views/pile/station/detail.vue # jsowell-ui/src/views/pile/station/orderReport.vue
55 lines
1.3 KiB
Markdown
55 lines
1.3 KiB
Markdown
# cli-spinners
|
|
|
|
> 70+ spinners for use in the terminal
|
|
|
|
<p align="center">
|
|
<br>
|
|
<img width="700" src="screenshot.svg">
|
|
<br>
|
|
<br>
|
|
</p>
|
|
|
|
The list of spinners is just a [JSON file](spinners.json) and can be used wherever.
|
|
|
|
You probably want to use one of these spinners through the [`ora`](https://github.com/sindresorhus/ora) module.
|
|
|
|
## Install
|
|
|
|
```sh
|
|
npm install cli-spinners
|
|
```
|
|
|
|
## Usage
|
|
|
|
```js
|
|
const cliSpinners = require('cli-spinners');
|
|
|
|
console.log(cliSpinners.dots);
|
|
/*
|
|
{
|
|
interval: 80,
|
|
frames: ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏']
|
|
}
|
|
*/
|
|
```
|
|
|
|
## Preview
|
|
|
|
The header GIF is outdated. See all the [spinner at once](https://jsfiddle.net/sindresorhus/2eLtsbey/embedded/result/) or [one at the time](https://asciinema.org/a/95348?size=big).
|
|
|
|
## API
|
|
|
|
Each spinner comes with a recommended `interval` and an array of `frames`.
|
|
|
|
[See the spinners.](spinners.json)
|
|
|
|
The `random` spinner will return a random spinner each time it's called.
|
|
|
|
## Related
|
|
|
|
- [ora](https://github.com/sindresorhus/ora) - Elegant terminal spinner
|
|
- [CLISpinner](https://github.com/kiliankoe/CLISpinner) - Terminal spinners for Swift
|
|
- [py-spinners](https://github.com/ManrajGrover/py-spinners) - Python port
|
|
- [spinners](https://github.com/FGRibreau/spinners) - Terminal spinners for Rust
|
|
- [go-spinners](https://github.com/gabe565/go-spinners) - Go port
|