runspin
v1.0.0
Published
Run a command in a terminal with a spinner, then replace with a checkmark when done. Simple wrapper for `ora` and `execa`.
Downloads
1
Readme
Run a command in a terminal with a spinner, then replace with a checkmark when done. Simple wrapper for ora
and execa
.
Example:
const runSpin = require('runspin');
(async () => {
await runSpin('sleep 3','Sleeping..');
await runSpin('ls -lah','Listing');
await runSpin('sleep 1', 'Wait..');
})().catch(console.error);