elegant-status-extended
v1.2.1
Published
Create elegant task status for CLI.
Downloads
1
Maintainers
Readme
elegant-status
Create elegant task status for CLI.
const elegantStatus = require('elegant-status');
const done = elegantStatus('Perform assessment');
setTimeout(() => done(true), 1000);
⬇
const elegantStatus = require('elegant-status');
const done = elegantStatus('Set defense systems');
setTimeout(() => done(false), 1000);
⬇
You can update status text while it's spinning using done.updateText()
function:
const elegantStatus = require('elegant-status');
const done = elegantStatus('Set defense systems');
setTimeout(() => done.updateText('1 second left'), 1000);
Install
npm install elegant-status