{"name":"cli-spinners","version":"3.2.1","keywords":["cli","spinner","spinners","terminal","term","console","ascii","unicode","loading","indicator","progress","busy","wait","idle","json"],"author":{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"cli-spinners@3.2.1","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/cli-spinners#readme","bugs":{"url":"https://github.com/sindresorhus/cli-spinners/issues"},"dist":{"shasum":"2fe4f7852cd9a421f1bc379d6903173428c8457c","tarball":"http://registry-npm.ywwl.com/cli-spinners/download/cli-spinners-3.2.1.tgz","fileCount":6,"integrity":"sha512-Xh+cRh7dzk9n7gYE+M1Lusy3yg5ADy9m6zOHqmcu9kSkWpo7ySWVUS3dXleR3konJOEOdHzsKjWkGed6g2eJuA==","signatures":[{"sig":"MEUCIQCmmRtl0KYzB7DKny4SoYfwvz1i05LdUAsqZ9GNkB/FLQIgLxu/U0dbTdNqbWzu8wT9qgHyow8Xfcf7yeLFsgDgZYw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":33003,"size":6761,"noattachment":false,"key":"/cli-spinners/-/cli-spinners-3.2.1.tgz"},"type":"module","types":"./index.d.ts","engines":{"node":">=18.20"},"exports":{"types":"./index.d.ts","default":"./index.js"},"funding":"https://github.com/sponsors/sindresorhus","gitHead":"8bf074cb46999301b3c291035ddc0a9c20da9466","scripts":{"test":"ava && tsc --noEmit index.d.ts","//test":"xo && ava && tsc --noEmit index.d.ts","asciicast":"asciinema rec --command='node example-all.js' --title='cli-spinner' --quiet"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/cli-spinners.git","type":"git"},"_npmVersion":"10.9.2","description":"Spinners for use in the terminal","directories":{},"sideEffects":false,"_nodeVersion":"20.19.5","_hasShrinkwrap":false,"devDependencies":{"xo":"^0.58.0","ava":"^6.1.2","log-update":"^6.0.0","typescript":"^5.4.5","string-length":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/cli-spinners_3.2.1_1758099215062_0.10699693351459749","host":"s3://npm-registry-packages-npm-production"},"readme":"# cli-spinners\n\n> 70+ spinners for use in the terminal\n\n<p align=\"center\">\n\t<br>\n\t<img width=\"700\" src=\"screenshot.svg\">\n\t<br>\n\t<br>\n</p>\n\nThe list of spinners is just a [JSON file](spinners.json) and can be used wherever.\n\nYou probably want to use one of these spinners through the [`ora`](https://github.com/sindresorhus/ora) package.\n\n## Install\n\n```sh\nnpm install cli-spinners\n```\n\n## Usage\n\n```js\nimport cliSpinners from 'cli-spinners';\n\nconsole.log(cliSpinners.dots);\n/*\n{\n\tinterval: 80,\n\tframes: ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏']\n}\n*/\n```\n\n- `interval` is the intended time per frame, in milliseconds.\n- `frames` is an array of frames to show for the spinner.\n\n## Preview\n\nThe header GIF is outdated. See all the [spinner at once](https://jsfiddle.net/sindresorhus/2eLtsbey/embedded/result/) or [one at the time](https://asciinema.org/a/95348?size=big).\n\n## API\n\n### cliSpinners\n\nEach spinner comes with a recommended `interval` and an array of `frames`.\n\n[See the spinners.](spinners.json)\n\n### randomSpinner()\n\nGet a random spinner.\n\n```js\nimport {randomSpinner} from 'cli-spinners';\n\nconsole.log(randomSpinner());\n/*\n{\n\tinterval: 80,\n\tframes: ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏']\n}\n*/\n```\n\n## Related\n\n- [ora](https://github.com/sindresorhus/ora) - Elegant terminal spinner\n- [CLISpinner](https://github.com/kiliankoe/CLISpinner) - Terminal spinners for Swift\n- [py-spinners](https://github.com/ManrajGrover/py-spinners) - Python port\n- [spinners](https://github.com/FGRibreau/spinners) - Terminal spinners for Rust\n- [go-spinners](https://github.com/gabe565/go-spinners) - Go port\n- [bash-cli-spinners](https://github.com/simeg/bash-cli-spinners) - Terminal spinners in Bash\n","publish_time":1758099215261,"_cnpm_publish_time":1758099215261,"dist-tags":{"latest":"3.4.0"}}