A lightweight, zero-dependency CLI spinner library for Node.js. Current stable version is 3.0.0, published as ESM-only (require() supported in Node >=20.17.0). Provides a simple Spinner class with start/stop/succeed/fail/warn/info methods, customizable frames and symbols, and built-in color support via node:util styleText (Node >=20.12.0). Unlike heavier alternatives like ora, picospinner has no dependencies and a minimal API. Version 2 remains maintained for CJS users. GitHub releases are infrequent; features are added conservatively.
npm install picospinnerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows instantiation, custom frames, symbols, colors, and the start/succeed pattern.
If you must use CommonJS, install v2: `npm i picospinner@2`. For Node <20.17.0, ensure your project is ESM or use a dynamic import.
Use `spinner.succeed('Done')` or another finishing method instead of `stop()` to show a completion indicator.Check `process.versions.node` and handle gracefully, or use a third-party color library like picocolors to ensure consistent coloring.
Update to v3: `npm i picospinner@latest`, convert to ESM (use import instead of require).
Use named import: `import { Spinner } from 'picospinner'`Switch to ESM: use import syntax, or install picospinner@2 for CommonJS support.
Set `"type": "module"` in package.json or use `.mjs` file extension.
No dependency data recorded yet.