{"id":13396691,"url":"https://github.com/codekirei/node-multispinner","last_synced_at":"2025-04-05T06:04:43.140Z","repository":{"id":47120726,"uuid":"44155866","full_name":"codekirei/node-multispinner","owner":"codekirei","description":"Multiple, simultaneous, individually controllable spinners for concurrent tasks in Node.js CLI programs","archived":false,"fork":false,"pushed_at":"2020-04-01T00:05:11.000Z","size":150,"stargazers_count":295,"open_issues_count":6,"forks_count":24,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-08T17:01:52.530Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/codekirei.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":"2015-10-13T06:14:25.000Z","updated_at":"2025-02-20T01:31:00.000Z","dependencies_parsed_at":"2022-09-26T21:50:53.055Z","dependency_job_id":null,"html_url":"https://github.com/codekirei/node-multispinner","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codekirei%2Fnode-multispinner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codekirei%2Fnode-multispinner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codekirei%2Fnode-multispinner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codekirei%2Fnode-multispinner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codekirei","download_url":"https://codeload.github.com/codekirei/node-multispinner/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247294538,"owners_count":20915340,"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-07-30T18:01:00.233Z","updated_at":"2025-04-05T06:04:43.119Z","avatar_url":"https://github.com/codekirei.png","language":"JavaScript","readme":"![node-multispinner](https://raw.githubusercontent.com/codekirei/node-multispinner/master/extras/multispinner.gif)\n---\n[![Build Status][1]][2]\n[![Coverage Status][3]][4]\n\n\u003cb\u003e[About](#about)\u003c/b\u003e | \n\u003cb\u003e[Installation](#installation)\u003c/b\u003e | \n\u003cb\u003e[API](#api)\u003c/b\u003e | \n\u003cb\u003e[Examples](#examples)\u003c/b\u003e | \n\u003cb\u003e[Attribution](#attribution)\u003c/b\u003e | \n\u003cb\u003e[License](#license)\u003c/b\u003e\n\n## About\n\n`node-multispinner` is a [Node.js](https://nodejs.org/) module for managing multiple progress indicators (spinners) in CLI apps.\nThis module is especially useful for apps that benefit from simultaneous async task execution (e.g. with `Promise.all[]`), as it enables live updating individual spinners, in any order, while other spinners continue spinning.\nNode.js 4.0 or newer is required.\n\n![demo-gif](https://raw.githubusercontent.com/codekirei/node-multispinner/master/extras/demo.gif)\n\n## Installation\n\nInstall and require as a standard Node module.\n\n**Install**\n\n```\n  $ npm install --save multispinner\n```\n\n**Require**\n\n```js\n  var Multispinner = require('multispinner')\n```\n\n## API\n\nFull documentation available [here](https://github.com/codekirei/node-multispinner/blob/master/extras/api.md).\n\n## Examples\n\nThe examples discussed below can be found [here](https://github.com/codekirei/node-multispinner/tree/master/extras/examples).\nRun them in a terminal with node:\n\n```\n$ node \u003cexample\u003e\n```\n\n**Example:** `events.js`\n\nCreates four spinners from an array, then completes them in succession with staggered `setTimeout` functions.\nResponds to the `success` and `err` completion events.\n\n**Example:** `customAnimation.js`\n\nCreates a custom spinner animation with the `frames` option.\n\n**Example:** `randomInfiniteLoop.js`\n\nCreates three to seven spinners with random lorem text and completes them randomly in less than five seconds in an infinite loop.\nStubs out the `logUpdate.done()` function to overwrite the previous output with every loop.\n\nIt's kind of mesmerising.\n\n**Example:** `cli-with-promises`\n\nA CLI application that reads URLs and parses HTML into text to display in a terminal.\nUses [meow](https://github.com/sindresorhus/meow) for CLI support, [html-to-text](https://github.com/werk85/node-html-to-text) for parsing, and [axios](https://github.com/mzabriskie/axios) for Promise-based HTTP requests.\nCreates spinners for each URL, and uses `Promise.all()` to execute the GET requests in parallel.\n\nThere are certainly edge cases that this example doesn't account for; it is not meant to be a \"real\" application.\nDespite that, the code should be illustrative of how `node-multispinner` could potentially be used in a real application.\n\nThis example is unique in that it requires modules not used in `node-multispinner`.\nBefore running it, `cd` into its directory and install the additional requirements from its `package.json` with `npm install`.\n\n## Attribution\n\nThanks to [sindresorhus](https://sindresorhus.com/hi/) for his [log-update](https://github.com/sindresorhus/log-update) module, which was a major inspiration for and is used extensively in this module.\nLog-update is [MIT licensed](https://raw.githubusercontent.com/sindresorhus/log-update/master/license).\n\n## License\n\n[MIT](https://github.com/codekirei/node-multispinner/blob/master/license)\n\n[1]: https://img.shields.io/travis/codekirei/node-multispinner.svg?style=flat-square\n[2]: https://travis-ci.org/codekirei/node-multispinner\n[3]: http://img.shields.io/coveralls/codekirei/node-multispinner.svg?style=flat-square\n[4]: https://coveralls.io/github/codekirei/node-multispinner?branch=master\n","funding_links":[],"categories":["打印","Packages","JavaScript","包","目录","Command-line utilities"],"sub_categories":["Command-line utilities","命令行工具","命令行实用工具"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodekirei%2Fnode-multispinner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodekirei%2Fnode-multispinner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodekirei%2Fnode-multispinner/lists"}