{"id":18721433,"url":"https://github.com/pagoru/simple-text-spinner","last_synced_at":"2025-11-11T01:30:18.998Z","repository":{"id":57361010,"uuid":"93457102","full_name":"pagoru/simple-text-spinner","owner":"pagoru","description":null,"archived":false,"fork":false,"pushed_at":"2017-08-07T15:20:01.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-28T19:48:45.031Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/pagoru.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-05T23:51:45.000Z","updated_at":"2017-06-06T01:44:01.000Z","dependencies_parsed_at":"2022-09-06T22:20:57.967Z","dependency_job_id":null,"html_url":"https://github.com/pagoru/simple-text-spinner","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pagoru%2Fsimple-text-spinner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pagoru%2Fsimple-text-spinner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pagoru%2Fsimple-text-spinner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pagoru%2Fsimple-text-spinner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pagoru","download_url":"https://codeload.github.com/pagoru/simple-text-spinner/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239586701,"owners_count":19663839,"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":[],"created_at":"2024-11-07T13:34:34.688Z","updated_at":"2025-11-11T01:30:18.368Z","avatar_url":"https://github.com/pagoru.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"This module was created to allow create easy animations with text in node.\n\n[![npm version](https://badge.fury.io/js/simple-text-spinner.svg)](https://www.npmjs.com/package/simple-text-spinner) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n## Installation\n\n```sh\nnpm install -S simple-text-spinner\n```\n\n## Usage\n```js\nconst SimpleTextSpinner = require('simple-text-spinner');\n\nlet spinner = new SimpleTextSpinner({options});\n\n//Plays the current animation\nspinner.play();\n//Stops the current animation\nspinner.pause();\n//Inverts the animation\nspinner.invert();\n\n//Returns the current animation text\nspinner.getText();\n//Returns the percentatge amount of the animation\nspinner.getPercentage();\n\n//Sets the label that will affect the animation, can be undefined.\n//Works like jquery ('.class', '#id', 'div')\nspinner.setTag(str);\n//Sets the interval between every frame of the animation\nspinner.setInterval(int);\n\n//Returns if the animations is paused\nspinner.isPaused();\n\n//Prints in console the current text\nspinner.print();\n```\n\n### Options\n```js\nnew SimpleTextSpinner({\n  tag: undefined,\n  interval: 100,\n  paused: false,\n  defaultPosition: 0,\n  pattern: ['⠇', '⠋', '⠙', '⠸', '⠴', '⠦'],\n  inverse: false\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpagoru%2Fsimple-text-spinner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpagoru%2Fsimple-text-spinner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpagoru%2Fsimple-text-spinner/lists"}