elegant-status

by inikulin

inikulin /elegant-status

Create elegant task status for CLI.

130 Stars 4 Forks Last release: over 4 years ago (v1.1.0) MIT License 8 Commits 2 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

elegant-status

Build Status

Create elegant task status for CLI.

const elegantStatus = require('elegant-status');

const done = elegantStatus('Perform assessment');

setTimeout(() => done(true), 1000);

success


const elegantStatus = require('elegant-status');

const done = elegantStatus('Set defense systems');

setTimeout(() => done(false), 1000);

success


You can update status text while it's spinning using

done.updateText()
function: ```js const elegantStatus = require('elegant-status');

const done = elegantStatus('Set defense systems');

setTimeout(() => done.updateText('1 second left'), 1000); ```

Install

npm install elegant-status

Author

Ivan Nikulin ([email protected])

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.