{"name":"cli-spinners","version":"2.0.0","description":"Spinners for use in the terminal","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/cli-spinners.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava && tsd-check","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.2.1","log-update":"^2.1.0","tsd-check":"^0.3.0","xo":"^0.24.0"},"gitHead":"8f4beeccdc1fd6f8f080bf3e86bfcc181bfd68c3","bugs":{"url":"https://github.com/sindresorhus/cli-spinners/issues"},"homepage":"https://github.com/sindresorhus/cli-spinners#readme","_id":"cli-spinners@2.0.0","_nodeVersion":"10.15.1","_npmVersion":"6.8.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-yiEBmhaKPPeBj7wWm4GEdtPZK940p9pl3EANIrnJ3JnvWyrPjcFcsEq6qRUuQ7fzB0+Y82ld3p6B34xo95foWw==","shasum":"4b078756fc17a8f72043fdc9f1f14bf4fa87e2df","tarball":"http://registry-npm.ywwl.com/cli-spinners/download/cli-spinners-2.0.0.tgz","fileCount":6,"unpackedSize":15820,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJceBX0CRA9TVsSAnZWagAAZF0P/0sTi4wmZ9piMgb7wKLC\nLRQlrSWTo5vhgmqLMsLQeDfysMxFT0QoSvR8pxQl3V/+2qZaAjtsZrPAum3f\nQVocSx+oVrJbxd1DqVuEey4XbL+oZybTnN3SXP63bbxHLUxfaExaBwVG+8SF\nrWsNEYwwyLgZpwLXmtMOHsYkO3bOWIW8RmngTpIGsMRIpweIt21wTU5IJjww\nNT/QUW2A9IP5iQ+BTF7K16T8JscYCsqLgjyp8pgq3wzSIAdUWgYAotbBTQAY\nNMT1vtqr6WchPpH2lODFZr4idh66sfMst94PKYKYvitON+A5ebS981Zb7uRg\nDGgDpCplnfdLYuJEesC7F1Zs7Gtx8mU8HdLbwj4OvsVcZi/aXXse7otXYwuv\njo0Sik1XEEqisasmPh0SFEsBepGju8uUrS5Rk6aZRPZhE8dR1vu4ukg8vMYP\nkrE6HPkk+iibwS/p2vrT2LACbwuyJhWLeTmexTtm3XGZSMY4t+V+prW1Dpd7\nY8sjv4J+J+nFE1lwQO6hZygD7TkpWh7WyLGYFGeGs/jm2rbZbuyB1/NhFDUd\nVdGGG0/GEUN+ee1ZAyuZlwcoZCchObAgGsSFOZMg8Do8T/iTsUHARmHPIbHk\nh8PKr3eqc0xyjGDQ23/n4F/bl1aLT4cYdTDF8bJ8933kMMjbc3kOyQsjmpVN\nIsqr\r\n=9+sv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBjPaORLq5tPn0Wx46QSpZ0xr6P2p+qk60Tt/ltT73NNAiEAgK15IcOuxT9s9gvKzK8GFKSqSsqw2Yuew1C4ngX0KVo="}],"size":4583,"noattachment":false,"key":"/cli-spinners/-/cli-spinners-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli-spinners_2.0.0_1551373811577_0.0490590749361175"},"_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":1551373811696,"_cnpm_publish_time":1551373811696,"dist-tags":{"latest":"3.4.0"}}