{"name":"cli-spinners","version":"2.7.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"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava && tsd","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":"^1.4.1","log-update":"^3.2.0","string-length":"^4.0.1","tsd":"^0.7.2","xo":"^0.24.0"},"types":"./index.d.ts","gitHead":"45cef9dff64ac5e36b46a194c68bccba448899ac","bugs":{"url":"https://github.com/sindresorhus/cli-spinners/issues"},"homepage":"https://github.com/sindresorhus/cli-spinners#readme","_id":"cli-spinners@2.7.0","_nodeVersion":"16.15.0","_npmVersion":"8.3.2","dist":{"integrity":"sha512-qu3pN8Y3qHNgE2AFweciB1IfMnmZ/fsNTEE+NOFjmGB2F/7rLhnhzppvpCnN4FovtP26k8lHyy9ptEbNwWFLzw==","shasum":"f815fd30b5f9eaac02db604c7a231ed7cb2f797a","tarball":"http://registry-npm.ywwl.com/cli-spinners/download/cli-spinners-2.7.0.tgz","fileCount":6,"unpackedSize":28054,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDRaX3q3rrNKpKf1rH0VIISnNva//M68qJdmA5qpc2x4gIgS2hWOgBznXfOQu0N8L4Pi1b+puv66BEecTP7b6B9Haw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi3bb6ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqBgBAAj2/5b6hEz1Rjmsn3Ogm1Kc0Hgnt8vHQIuIAjLIh3nXFIBr9z\r\nRld28YH659yMSqAdi/iNGOBrEYQLYbM6Ebs17tT6rtWyycIjN16ZvjzoQEju\r\nfZ5A5VmhUy7NFmjZw/enPmT6K5fZIcDAkLbXfKIghaE2vMPG/UTyh1AXo9UV\r\nF+arX+y6YArLWlShJOQc4YGUplgu+L9bR8QqYUYC+5DtIXJLUYkMkim+PvKM\r\nQrAQQ78doHj7gbTzQWGDIi1RkXeC+G3t6P+tp4cS1teSZ1dMBH9ZHAgiArIB\r\nA5wXlhPbtZS5qZm7R7lZkmmQ5A9hyC9aiSKSrxbrr7ZwCmHoQtS43ROHojLl\r\nulATndtuNoX6QChQvYaGSYpxN/VVQtbH1KCwlXULaq34AH90nW5rZykV4Fh+\r\nNl6sODDsgxEEG0Bn5qY7IIevE7V83/dsWlSB4AL1JYOHTwaxe38OiNLAifyB\r\nYWBXateCWFoj1XmdVGsZsuN6JLNkor9fHioZ+IaNBL8sFIBMgXL7NuuNXQ+y\r\nBvgMWh+o7Kt9Ny/JnxJPgevn4yHiRJk5zhn1G9Aov8x1/o7CG5sSR7z57YIu\r\n1IqpuUKkbK5Wg74FCducAihy8KISCm4QwY7+uEyGnhGVpPqS5QZp+p8PcQKz\r\n3croDz0YvPV34zvQAayGMzkXzkpy+BhJyWI=\r\n=anDr\r\n-----END PGP SIGNATURE-----\r\n","size":6115,"noattachment":false,"key":"/cli-spinners/-/cli-spinners-2.7.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli-spinners_2.7.0_1658697466623_0.4360826240237705"},"_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":1658697466815,"_cnpm_publish_time":1658697466815,"dist-tags":{"latest":"3.4.0"}}