Welcome to spindle! This library offers a simple way to add multi-spinners to your command line applications. You can create an engaging user experience without any complex coding.
ora, listr, and log-update.To get spindle, visit the Releases page. Here you will find the latest version to download:
Here is the direct link to download spindle.
Once you have installed spindle, you can start using it in your Node.js applications. Follow these steps to get started:
Open your Command Line Interface: This can be Terminal on macOS and Linux, or Command Prompt on Windows.
cd command to go to the desired directory. For example:
cd path/to/your/project
npm install spindle
app.js, and add the following code:
const { Spinner } = require('spindle');
const spinner = new Spinner('Loading...');
spinner.start();
setTimeout(() => {
spinner.stop();
console.log('Done!');
}, 3000);
node app.js
You can create various types of spinners. Here are some examples:
const spinner = new Spinner('Processing...');
const spinner = new Spinner('Fetching data...', {
format: '🔄 {spinner} {message}',
});
Play around with different messages and styles to see what fits your application.
A spinner is a visual indication that a process is ongoing in your command line application. It keeps users informed and engaged.
Yes. You can change the message and style. Refer to the usage section for details.
We aim for regular updates to improve performance and add features based on user feedback.
For questions or assistance, feel free to reach out through our issues section on GitHub. We appreciate user input and work to address any concerns as quickly as possible.
With spindle, adding spinners to your command line applications is straightforward. Follow the steps above to enhance your user interface effortlessly. We look forward to seeing how you use spindle in your projects!