22 lines
482 B
Markdown
22 lines
482 B
Markdown
# Nano Spinner
|
|
|
|
The simplest and tiniest terminal spinner for Node.js
|
|
|
|
```js
|
|
import { createSpinner } from 'nanospinner'
|
|
|
|
const spinner = createSpinner('Run test').start()
|
|
|
|
setTimeout(() => {
|
|
spinner.success()
|
|
}, 1000)
|
|
```
|
|
|
|
- Only **single dependency** (picocolors).
|
|
- It **45 times** smaller than `ora`.
|
|
- Support both CJS and ESM projects.
|
|
- **TypeScript** type declarations included.
|
|
|
|
## Docs
|
|
Read **[full docs](https://github.com/usmanyunusov/nanospinner#readme)** on GitHub.
|