create-spinner
Create an elegant spinner with ease
Install
npm install --save create-spinner
Usage
const createSpinner = ; const stopSpinner = ;return { if err ; ; else ; ; };
API
createSpinner(text, first)
Create a spinner and return a function that must be called when you want to stop the spinner. The function takes a boolean as argument to tell if the operation was successful or not.
text
Type: string
Text to display
first (optional)
Type: boolean
If true, don't go to the next line (only useful when you create multiple spinners)
License
MIT © Olivier Ligot