$ npm install simple-spinner
This is a supper simple spinner / activity indicator for Node.js. I've used it in a few console tools that I've written in Node.js, where I've wanted to show that there is activity and that the program isn't hung.
So simple it only has 3 functions.
start([interval in ms], [options])
hideCursor (boolean, default: false): When true, hide the console cursor (uses TooTallNate/ansi.js)doNotBlock (boolean, default: false): When true, unref the timer so it does not prevent the process from exiting.stop()
change_sequence(sequence)
[".", "o", "0", "@", "*"]© 2010 - cnpmjs.org x YWFE | Home | YWFE