Socket
Socket
Sign inDemoInstall

simple-ora

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    simple-ora

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


Version published
Maintainers
1
Created

Readme

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

Last updated on 14 Mar 2024

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc