{"id":16493891,"url":"https://github.com/echosoar/light-spinner","last_synced_at":"2025-03-23T12:34:49.539Z","repository":{"id":48151213,"uuid":"277084580","full_name":"echosoar/light-spinner","owner":"echosoar","description":"EN Description: This is a no-dependencies minimal cli spinners, only 1KB. ZH-CN: 命令行进度旋转展示器，无任何依赖，超轻量","archived":false,"fork":false,"pushed_at":"2021-10-08T06:27:14.000Z","size":830,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-29T09:22:07.419Z","etag":null,"topics":["cli","cli-spinner","no-dependencies","node-spinner","spinner","statusbar","terminal","terminal-spinner"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/echosoar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-04T10:05:41.000Z","updated_at":"2023-05-09T08:37:40.000Z","dependencies_parsed_at":"2022-09-05T05:01:10.460Z","dependency_job_id":null,"html_url":"https://github.com/echosoar/light-spinner","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/echosoar%2Flight-spinner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/echosoar%2Flight-spinner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/echosoar%2Flight-spinner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/echosoar%2Flight-spinner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/echosoar","download_url":"https://codeload.github.com/echosoar/light-spinner/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245104460,"owners_count":20561377,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","cli-spinner","no-dependencies","node-spinner","spinner","statusbar","terminal","terminal-spinner"],"created_at":"2024-10-11T14:11:02.153Z","updated_at":"2025-03-23T12:34:48.931Z","avatar_url":"https://github.com/echosoar.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cbr/\u003e\n  \u003cbr/\u003e\n  \u003cb\u003elight spinner\u003c/b\u003e\n  \u003cbr /\u003e\n  \u003cbr /\u003e\n  \u003cspan\u003eThis is a no-dependencies minimal cli spinner, only 1kb.\u003c/span\u003e\n  \u003cbr /\u003e\n  \u003cbr /\u003e\n  \u003cspan\u003e\n    \u003ca href=\"https://www.npmjs.org/package/light-spinner\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/light-spinner.svg?style=flat\" alt=\"npm\"\u003e\u003c/a\u003e \n    \u003ca href=\"./LICENSE\" alt=\"GitHub license\"\u003e\n      \u003cimg src=\"https://img.shields.io/badge/license-MIT-blue.svg\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/echosoar/light-spinner/actions?query=workflow%3A%22Node.js+CI%22\" alt=\"Node.js CI\"\u003e\n      \u003cimg src=\"https://img.shields.io/badge/Node.js%20CI-passing-brightgreen\" /\u003e\n    \u003c/a\u003e\n  \u003c/span\u003e\n  \u003cbr /\u003e\n  \u003cbr /\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/echosoar/light-spinner/master/spin.gif\" /\u003e\n\u003c/p\u003e\n\n\n\n## Install\n```shell\n$ npm i light-spinner --save\n```\n## Usage\n```ts\nimport Spin from 'light-spinner';\nconst spin = new Spin({\n  text: 'test',\n});\nspin.start();\n\n// change text\nspin.text = 'test 2';\n\nspin.stop();\n```\n\n## Options\n| option | type | desc | default |\n| --- | --- | --- | --- |\n| text | string | console text | empty string |\n| timeout | number | the time of changing to next frame | 100(ms) |\n| spinners | string[] | frame list | `['⠋', '⠙', '⠹', '⠼', '⠴', '⠦', '⠧', '⠏']` |\n| stream | WritableStream | the stream to send the output to | stdout |\n\n\n[MIT LICENSE](./LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fechosoar%2Flight-spinner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fechosoar%2Flight-spinner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fechosoar%2Flight-spinner/lists"}