{"name":"cli-spinners","version":"3.1.0","description":"Spinners for use in the terminal","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/cli-spinners.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=18.20"},"scripts":{"//test":"xo && ava && tsc --noEmit index.d.ts","test":"ava && tsc --noEmit index.d.ts","asciicast":"asciinema rec --command='node example-all.js' --title='cli-spinner' --quiet"},"keywords":["cli","spinner","spinners","terminal","term","console","ascii","unicode","loading","indicator","progress","busy","wait","idle","json"],"devDependencies":{"ava":"^6.1.2","log-update":"^6.0.0","string-length":"^6.0.0","typescript":"^5.4.5","xo":"^0.58.0"},"_id":"cli-spinners@3.1.0","gitHead":"32d0d83bcb5c2415a4fcb068c3b4de4653525676","types":"./index.d.ts","bugs":{"url":"https://github.com/sindresorhus/cli-spinners/issues"},"homepage":"https://github.com/sindresorhus/cli-spinners#readme","_nodeVersion":"18.20.2","_npmVersion":"10.6.0","dist":{"integrity":"sha512-2MH0N34TpDAs9ROPVkZJfBWFoYfv4zfkJF14PBHY4v/qRY75SLcm4WaEKNCLScsXieosa/tY/+slJ+BDswJxHQ==","shasum":"1afabd5d9467ce8622bee80be97f7c7a9ab33657","tarball":"http://registry-npm.ywwl.com/cli-spinners/download/cli-spinners-3.1.0.tgz","fileCount":6,"unpackedSize":32596,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA9JIolalnG7GvgRDGicZsxPXJMSv+EhNwaueJ/F+xbbAiBTDfitFuzi6KdUqA4MHlua5wVaHZDH99XX0CyoVQWipg=="}],"size":6657,"noattachment":false,"key":"/cli-spinners/-/cli-spinners-3.1.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli-spinners_3.1.0_1719855813896_0.9919883236989762"},"_hasShrinkwrap":false,"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## 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","publish_time":1719855814056,"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_cnpm_publish_time":1719855814056,"dist-tags":{"latest":"3.4.0"}}