
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
cli-loading-animation
Advanced tools
Small library that combine cli-spinners and log-update to display a loading animation in CLI apps made with Node.
This library combines cli-spinners and log-update to display a loading animation in CLI apps made with Node.
# NPM
npm install cli-loading-animation
# Yarn
yarn add cli-loading-animation
const { loading } = require('cli-loading-animation');
const { start, stop } = loading('Loading..');
start();
setTimeout(() => stop(), 3000);
const { loading } = require('cli-loading-animation');
const spinners = require('cli-spinners');
const { start, stop } = loading('Loading..', { clearOnEnd: false, spinner: spinners.bouncingBall });
start();
setTimeout(() => stop(), 3000);
Where spinner
can be a object with frames
(an array of strings) and interval
(a number) property.
The library cli-spinners already provide several spinners in this format.
Option | Description | Default Value |
---|---|---|
spinner | Custom Spinner to use | dots from the cli-spinners library |
clearOnEnd | Specifies if the loading line on the console must be cleared on calling the stop function. | true |
MIT
FAQs
Small library that combine cli-spinners and log-update to display a loading animation in CLI apps made with Node.
The npm package cli-loading-animation receives a total of 1,520 weekly downloads. As such, cli-loading-animation popularity was classified as popular.
We found that cli-loading-animation demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.