svelte-command v1.1.50
svelte-command
general command execution handling for svelte components
API
Table of Contents
BasicCommand
Parameters
start
properties
options
(optional, default{}
)
subscribe
Parameters
subscription
Function
Command
Extends BasicCommand
Parameters
_start
options
(optional, default{}
)
Properties
title
stringdescription
stringshortcuts
stringdisabled
booleanactive
booleanfailed
booleancompleted
boolean
ConfirmCommand
Extends BasicCommand
Ask for confirmation before esxecution a given Command.
Parameters
command
FetchCommand
Extends Command
Command executing a fetch request.
Parameters
url
fetchOptions
options
(optional, default{}
)
handleFailedResponse
Extract error description from response.
Parameters
response
Response
Returns Promise[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)
install
With npm do:
npm install svelte-command
With yarn do:
yarn add svelte-command
license
BSD-2-Clause
12 months ago
12 months ago
10 months ago
10 months ago
11 months ago
11 months ago
8 months ago
10 months ago
10 months ago
10 months ago
8 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago