A Node.js library that combines cli-spinners and log-update to display terminal loading animations. Current stable version is 1.0.6. Provides a simple API with start/stop functions and supports custom spinners. Differentiators include zero additional dependencies (uses well-established underlying libraries) and TypeScript type definitions included.
npm install cli-loading-animationVerified import paths — ran on the pinned version, not inferred.
Shows how to import and use the loading function with a custom message and optional clearing on stop.
Monitor for updates to underlying dependencies.
Ensure stop() is called only once.
Always call stop() after use, e.g., in a finally block.
Use `import { loading } from 'cli-loading-animation'` or `const { loading } = require('cli-loading-animation')`.Run `npm install cli-loading-animation` or `yarn add cli-loading-animation`.