{"id":28753155,"url":"https://github.com/alloc/picotask","last_synced_at":"2026-02-13T16:02:58.811Z","repository":{"id":285299988,"uuid":"957666160","full_name":"alloc/picotask","owner":"alloc","description":"CLI tasks with spinners and timers (using picocolors)","archived":false,"fork":false,"pushed_at":"2025-03-30T23:06:55.000Z","size":18,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-05T16:52:25.239Z","etag":null,"topics":[],"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/alloc.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-30T22:39:29.000Z","updated_at":"2025-03-31T00:36:30.000Z","dependencies_parsed_at":"2025-03-30T23:11:09.164Z","dependency_job_id":"73ea6dc9-b5bd-483e-8200-a39f606a1d83","html_url":"https://github.com/alloc/picotask","commit_stats":null,"previous_names":["alloc/picotask"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/alloc/picotask","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alloc%2Fpicotask","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alloc%2Fpicotask/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alloc%2Fpicotask/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alloc%2Fpicotask/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alloc","download_url":"https://codeload.github.com/alloc/picotask/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alloc%2Fpicotask/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260268635,"owners_count":22983601,"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":"2025-06-17T00:38:48.965Z","updated_at":"2026-02-13T16:02:58.715Z","avatar_url":"https://github.com/alloc.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# picotask\n\nBare minimum CLI spinners with labels and elapsed times.\n\n```\npnpm add picotask\n```\n\n## Exports\n\n### `Picotask` namespace\n\n```typescript\nnamespace Picotask {\n  /**\n   * Options for Picotask.\n   */\n  interface Options {\n    /**\n     * Control whether the elapsed time is visible for this task.\n     * @default true\n     */\n    elapsed?: boolean\n    /**\n     * Control whether the spinner is visible for this task.\n     *\n     * The default value is `true` unless `footer: true` is used.\n     */\n    spinner?: boolean\n    /**\n     * Always render this task after normal tasks.\n     *\n     * This also implies `spinner: false`\n     */\n    footer?: boolean\n  }\n}\n```\n\n### `Picotask` class\n\n```typescript\nclass Picotask {\n  /**\n   * Constructor for Picotask.\n   * @param init - The text or function that returns the text to display for the task.\n   * @param options - Options to configure the task. If a boolean is provided, it will be used as the `spinner` option.\n   */\n  constructor(\n    init: string | (() =\u003e string),\n    options: boolean | Picotask.Options = {}\n  )\n  /**\n   * Indicates if the task is a footer task.\n   */\n  readonly isFooter: boolean\n  /**\n   * Gets the height of the task in lines.\n   */\n  get height(): number\n  /**\n   * Renders the task to the console.\n   * @param showElapsed - Whether to show the elapsed time. Defaults to `options.elapsed`.\n   */\n  render(showElapsed?: boolean): void\n  /**\n   * Updates the task text.\n   * @param text - The new text to display. If not provided, the `init` constructor argument will be used.\n   */\n  update(text?: string): void\n  /**\n   * Finishes the task and (optionally) displays a success message.\n   * @param text - The text to display on finish. If not provided, nothing is logged.\n   */\n  finish(text?: string): void\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falloc%2Fpicotask","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falloc%2Fpicotask","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falloc%2Fpicotask/lists"}