{"name":"cli-spinners","version":"2.4.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","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"b21f6e5bfd5926356931b64de41593d91e74cc4a","bugs":{"url":"https://github.com/sindresorhus/cli-spinners/issues"},"homepage":"https://github.com/sindresorhus/cli-spinners#readme","_id":"cli-spinners@2.4.0","_nodeVersion":"14.5.0","_npmVersion":"6.14.5","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-sJAofoarcm76ZGpuooaO0eDy8saEy+YoZBLjC4h8srt4jeBnkYeOgqxgsJQTpyt2LjI5PTfLJHSL+41Yu4fEJA==","shasum":"c6256db216b878cfba4720e719cec7cf72685d7f","tarball":"http://registry-npm.ywwl.com/cli-spinners/download/cli-spinners-2.4.0.tgz","fileCount":6,"unpackedSize":25406,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfEv49CRA9TVsSAnZWagAAQo4P/0ANtuH87JS/sNtAUSC2\n5JicmZG5Uppd5+9QZK2lVG4+MMvt5oceHk3GtmK3PELx6Sie4f5FGbi3LDlf\nibavB9hglkWuuk2zD8paUkAD2GzyhcZI4HYJFXiduzniH1XYfEOXKQNGBest\nmp2UCAmOuOqXn9AFbj+3DK5Nl9H6Ep24WlVzJvhto8yQasqargNIZ9OxmP66\nl9twd58c5fOjv+suG+eroShh/NBd9PBd76EfOZe8Obf6yfXJO6V8JjM/le/J\nLoX0g8cjVhKe96Fn5lKcspPB68inczsZ24wHUU2Td7PlU7ZlZJzoIiR4y3Jk\niuoDLWF7QWSUNwwWygsegc+6pfeGgmBbOIl3xcRBhwCXImNdGwy7dtm39DD1\nZupl5s8heqYEWbKxHtXCnDuLp2D5vlKz4ZF78Ro3OCEsshuBkfe63CZF3Co4\ntNSdcCLt/P68CX09Bcu0V5FZWLshPU6fTSWFbL76v6oacU3uUiC5+wophAzL\n8dOSogaI9lahnKZ8J+jrFVAU4HZ/x1jCNB8iT3LJuljdY4Lb9+uGa+N//otw\nI2ycXYA823xbpr9PH4Ustz/XDH5h3wMfO/4dZqeu/hWTlmGqCoOmsfLJt6/G\nJt0SGB5WNlqWw451GEVgJyA13khTmZJ94Ai1ojXyI24mWCyoWSAbPsM5s7Fy\nVH6S\r\n=Y1vk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAaZNIEQDJqUn7NkrU+qSFcFCPk4DfarUeQ5R5Z4urVXAiBSck4qHzT+nTdApTH6jhkeea6u284wWycgZiOSCA5JIA=="}],"size":5754,"noattachment":false,"key":"/cli-spinners/-/cli-spinners-2.4.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli-spinners_2.4.0_1595080252966_0.11368512461777214"},"_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":1595080253175,"_cnpm_publish_time":1595080253175,"dist-tags":{"latest":"3.4.0"}}