Loading Module
This module provides a loading function that displays a loading animation in the console.
Installation
To use this module, simply install it via npm:
npm i simple-ora
Usage
const loadingModule = require('simple-ora');
loadingModule.loading();
loadingModule.loading('Custom message...', 3);
The loading function accepts two parameters:
text
: The message to be displayed while loading. Defaults to 'File is now running...'.time
: The duration of the loading animation in seconds. Defaults to 5 seconds.
Example
const loadingModule = require('simple-ora');
loadingModule.loading('Please wait...', 3);
This will display a loading animation in the console for 3 seconds with the message "Please wait...".