{"id":16698117,"url":"https://github.com/arlac77/svelte-command","last_synced_at":"2025-04-10T02:55:07.040Z","repository":{"id":37093747,"uuid":"330769020","full_name":"arlac77/svelte-command","owner":"arlac77","description":"\"general command execution handling for svelte components\"","archived":false,"fork":false,"pushed_at":"2025-04-09T19:53:43.000Z","size":17447,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T20:20:14.874Z","etag":null,"topics":["svelte"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"0bsd","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arlac77.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":"2021-01-18T19:39:57.000Z","updated_at":"2025-04-09T19:53:45.000Z","dependencies_parsed_at":"2023-10-16T12:26:13.032Z","dependency_job_id":"65421e08-3d0f-47a1-b60b-6016ba415e7c","html_url":"https://github.com/arlac77/svelte-command","commit_stats":{"total_commits":1158,"total_committers":4,"mean_commits":289.5,"dds":0.3609671848013817,"last_synced_commit":"dcd7c99d3655261543dedb0ed23f302ef436181c"},"previous_names":[],"tags_count":83,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arlac77%2Fsvelte-command","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arlac77%2Fsvelte-command/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arlac77%2Fsvelte-command/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arlac77%2Fsvelte-command/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arlac77","download_url":"https://codeload.github.com/arlac77/svelte-command/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248104148,"owners_count":21048289,"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":["svelte"],"created_at":"2024-10-12T17:50:53.047Z","updated_at":"2025-04-10T02:55:07.015Z","avatar_url":"https://github.com/arlac77.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Svelte v5](https://img.shields.io/badge/svelte-v5-orange.svg)](https://svelte.dev)\n[![npm](https://img.shields.io/npm/v/svelte-command.svg)](https://www.npmjs.com/package/svelte-command)\n[![License](https://img.shields.io/badge/License-0BSD-blue.svg)](https://spdx.org/licenses/0BSD.html)\n[![bundlejs](https://deno.bundlejs.com/?q=svelte-command\\\u0026badge=detailed)](https://bundlejs.com/?q=svelte-command)\n[![downloads](http://img.shields.io/npm/dm/svelte-command.svg?style=flat-square)](https://npmjs.org/package/svelte-command)\n[![GitHub Issues](https://img.shields.io/github/issues/arlac77/svelte-command.svg?style=flat-square)](https://github.com/arlac77/svelte-command/issues)\n[![Build Status](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Farlac77%2Fsvelte-command%2Fbadge\\\u0026style=flat)](https://actions-badge.atrox.dev/arlac77/svelte-command/goto)\n[![Styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)\n[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)\n[![Known Vulnerabilities](https://snyk.io/test/github/arlac77/svelte-command/badge.svg)](https://snyk.io/test/github/arlac77/svelte-command)\n[![Coverage Status](https://coveralls.io/repos/arlac77/svelte-command/badge.svg)](https://coveralls.io/github/arlac77/svelte-command)\n[![Tested with TestCafe](https://img.shields.io/badge/tested%20with-TestCafe-2fa4cf.svg)](https://github.com/DevExpress/testcafe)\n\n# svelte-command\n\ngeneral command execution handling for svelte components\n\n# API\n\n\u003c!-- Generated by documentation.js. Update this documentation by updating the source code. --\u003e\n\n### Table of Contents\n\n*   [BasicCommand](#basiccommand)\n    *   [Parameters](#parameters)\n    *   [subscribe](#subscribe)\n        *   [Parameters](#parameters-1)\n*   [Command](#command)\n    *   [Parameters](#parameters-2)\n    *   [Properties](#properties)\n*   [ConfirmCommand](#confirmcommand)\n    *   [Parameters](#parameters-3)\n*   [FetchCommand](#fetchcommand)\n    *   [Parameters](#parameters-4)\n*   [handleFailedResponse](#handlefailedresponse)\n    *   [Parameters](#parameters-5)\n\n## BasicCommand\n\n### Parameters\n\n*   `start` \u0026#x20;\n*   `properties` \u0026#x20;\n*   `options`   (optional, default `{}`)\n\n### subscribe\n\n#### Parameters\n\n*   `subscription` **[Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function)**\u0026#x20;\n\n## Command\n\n**Extends BasicCommand**\n\n### Parameters\n\n*   `_start` \u0026#x20;\n*   `options`   (optional, default `{}`)\n\n### Properties\n\n*   `title` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**\u0026#x20;\n*   `description` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**\u0026#x20;\n*   `shortcuts` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**\u0026#x20;\n*   `disabled` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)**\u0026#x20;\n*   `active` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)**\u0026#x20;\n*   `failed` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)**\u0026#x20;\n*   `completed` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)**\u0026#x20;\n\n## ConfirmCommand\n\n**Extends BasicCommand**\n\nAsk for confirmation before execution a given Command.\n\n### Parameters\n\n*   `command` \u0026#x20;\n\n## FetchCommand\n\n**Extends Command**\n\nCommand executing a fetch request.\n\n### Parameters\n\n*   `url` **any**\u0026#x20;\n*   `fetchOptions` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)**\u0026#x20;\n*   `options` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)**  (optional, default `{}`)\n\n## handleFailedResponse\n\nExtract error description from response.\n\n### Parameters\n\n*   `response` **[Response](https://developer.mozilla.org/docs/Web/Guide/HTML/HTML5)**\u0026#x20;\n\nReturns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\u003c[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)\u003e**\u0026#x20;\n\n# install\n\nWith [npm](http://npmjs.org) do:\n\n```shell\nnpm install svelte-command\n```\n\nWith [yarn](https://yarnpkg.com) do:\n\n```shell\nyarn add svelte-command\n```\n\n# license\n\nBSD-2-Clause\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farlac77%2Fsvelte-command","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farlac77%2Fsvelte-command","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farlac77%2Fsvelte-command/lists"}