🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

simple-ora

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

simple-ora

This module provides a loading function that displays a loading animation in the console.

1.0.4
unpublished
latest
npm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

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');

// Display a default loading message for 5 seconds
loadingModule.loading();

// Display a custom loading message for 3 seconds
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');

// Display a loading animation for 3 seconds with a custom message
loadingModule.loading('Please wait...', 3);

This will display a loading animation in the console for 3 seconds with the message "Please wait...".

FAQs

Package last updated on 14 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts