svelte-command

2.0.1 • Public • Published

Svelte v4 npm License bundlejs downloads GitHub Issues Build Status Styled with prettier Commitizen friendly Known Vulnerabilities Coverage Status Tested with TestCafe

svelte-command

general command execution handling for svelte components

API

Table of Contents

BasicCommand

Parameters

  • start
  • properties
  • options (optional, default {})

subscribe

Parameters

Command

Extends BasicCommand

Parameters

  • _start
  • options (optional, default {})

Properties

ConfirmCommand

Extends BasicCommand

Ask for confirmation before execution a given Command.

Parameters

  • command

FetchCommand

Extends Command

Command executing a fetch request.

Parameters

  • url any
  • fetchOptions Object
  • options Object (optional, default {})

handleFailedResponse

Extract error description from response.

Parameters

Returns Promise<string>

install

With npm do:

npm install svelte-command

With yarn do:

yarn add svelte-command

license

BSD-2-Clause

Package Sidebar

Install

npm i svelte-command

Weekly Downloads

800

Version

2.0.1

License

BSD-2-Clause

Unpacked Size

17.5 kB

Total Files

8

Last publish

Collaborators

  • arlac77