{"library":"elegant-spinner","type":"library","category":null,"description":"elegant-spinner provides a simple, elegant set of ASCII frames designed for creating visual loading indicators in interactive command-line interface (CLI) applications. The current stable version is 3.0.0. This package itself does not handle the animation logic; rather, it supplies the individual spinner frames that an external utility (like `log-update` or `ora`) can iterate through to create an animated effect. Its release cadence is tied to Node.js compatibility updates and essential maintenance, rather than rapid feature development. A key differentiator is its minimalism, focusing solely on the spinner frames. However, for most use cases requiring a full-fledged animated spinner, the `ora` package is recommended as it bundles `elegant-spinner` and manages the animation loop automatically. It supports modern Node.js environments and is pure ESM since version 3.0.0, with TypeScript definitions available since version 2.0.0.","language":"javascript","status":"maintenance","version":"3.0.0","tags":["javascript","ansi","terminal","console","cli","string","log","logging","spinner"],"last_verified":"Wed May 27","install":[{"cmd":"npm install elegant-spinner","imports":["import elegantSpinner from 'elegant-spinner';","import elegantSpinner from 'elegant-spinner';\nconst frame = elegantSpinner();\n// frame() returns the next string frame"]},{"cmd":"yarn add elegant-spinner","imports":[]},{"cmd":"pnpm add elegant-spinner","imports":[]}],"homepage":null,"github":"https://github.com/sindresorhus/elegant-spinner","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/elegant-spinner","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/elegant-spinner/compatibility"}}