Simple loading bar
npm i loar
import loar, { Loar } from "loar";
loar.start();
Default export: loar
- an instance of Loar class
const loar = new Loar(options);
loar.start();
name | type | default | description |
---|---|---|---|
color | string | white | Loading bar color (using picocolors) |
symbol | string | ▬ | Loading bar symbol |
text | string | Add text above loading bar | |
width | number | 20 | Loading bar width |
interval | number | 10 | Loading bar interval |
loar.start();
setTimeout(() => loar.stop(), 6000);