{"id":41923414,"url":"https://github.com/matheusviegas/cli-loading-animation","last_synced_at":"2026-01-25T17:05:31.185Z","repository":{"id":57685372,"uuid":"494265684","full_name":"matheusviegas/cli-loading-animation","owner":"matheusviegas","description":"This library combines cli-spinners and log-update to display a loading animation in CLI apps made with Node.","archived":false,"fork":false,"pushed_at":"2022-05-20T12:43:40.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-09T03:22:57.261Z","etag":null,"topics":["cli-app","loading","loading-animations","loading-spinner","nodejs"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/cli-loading-animation","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/matheusviegas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-05-20T00:06:40.000Z","updated_at":"2024-05-10T18:32:13.000Z","dependencies_parsed_at":"2022-09-19T08:30:22.610Z","dependency_job_id":null,"html_url":"https://github.com/matheusviegas/cli-loading-animation","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/matheusviegas/cli-loading-animation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matheusviegas%2Fcli-loading-animation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matheusviegas%2Fcli-loading-animation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matheusviegas%2Fcli-loading-animation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matheusviegas%2Fcli-loading-animation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matheusviegas","download_url":"https://codeload.github.com/matheusviegas/cli-loading-animation/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matheusviegas%2Fcli-loading-animation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28755563,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T16:32:25.380Z","status":"ssl_error","status_checked_at":"2026-01-25T16:32:09.189Z","response_time":113,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli-app","loading","loading-animations","loading-spinner","nodejs"],"created_at":"2026-01-25T17:05:30.695Z","updated_at":"2026-01-25T17:05:31.177Z","avatar_url":"https://github.com/matheusviegas.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cli-loading-animation\n\nThis library combines [cli-spinners](https://www.npmjs.com/package/cli-spinners) and [log-update](https://www.npmjs.com/package/log-update) to display a loading animation in CLI apps made with Node.\n\n### Install\n\n```sh\n# NPM\nnpm install cli-loading-animation\n\n# Yarn\nyarn add cli-loading-animation\n```\n\n### Example\n\n```javascript\nconst { loading } = require('cli-loading-animation');\n\nconst { start, stop } = loading('Loading..');\n\nstart();\n\nsetTimeout(() =\u003e stop(), 3000);\n```\n\n### Custom Spinner\n\n```javascript\nconst { loading } = require('cli-loading-animation');\nconst spinners = require('cli-spinners');\n\nconst { start, stop } = loading('Loading..', { clearOnEnd: false, spinner: spinners.bouncingBall });\n\nstart();\n\nsetTimeout(() =\u003e stop(), 3000);\n```\n\nWhere `spinner` can be a object with `frames` (an array of strings) and `interval` (a number) property.\n\nThe library [cli-spinners](https://www.npmjs.com/package/cli-spinners) already provide several spinners in this format.\n\n### Options\n\n| Option     | Description                                                                                  | Default Value                            |\n| ---------- | -------------------------------------------------------------------------------------------- | ---------------------------------------- |\n| spinner    | Custom Spinner to use                                                                        | **dots** from the `cli-spinners` library |\n| clearOnEnd | Specifies if the loading line on the console must be cleared on calling the `stop` function. | true                                     |\n\n### License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatheusviegas%2Fcli-loading-animation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatheusviegas%2Fcli-loading-animation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatheusviegas%2Fcli-loading-animation/lists"}