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