usmanyunusov / nanospinner

🌀 The simplest and tiniest terminal spinner for Node.js
https://npm.im/nanospinner
ISC License
183 stars 15 forks source link

start() should have opts similar to stop() #9

Closed henryruhs closed 2 years ago

henryruhs commented 2 years ago

There should be the option to pass a text on start() like ora does.

Otherwise I have to do this:

spinner.start();
spinner.update({
    text: 'start the spinner'
});
usmanyunusov commented 2 years ago

Fixed https://github.com/usmanyunusov/nanospinner/commit/ee17b9285420f652d2072091b306d7bb11edb160

usmanyunusov commented 2 years ago

Released in 0.2.2

henryruhs commented 2 years ago

Great, should be a 0.3.0 cause this is an non-breaking API change... patch releases for fixes only

usmanyunusov commented 2 years ago

I'll take for the future!