# svelte-exec

> A tiny svelte component to emit a `load` event when the component is loaded.

Latest version **1.0.2** (published 2023-10-08) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install svelte-exec
pnpm add svelte-exec
yarn add svelte-exec
bun add svelte-exec
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2023-10-08 |
| First published | 2023-01-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Dependencies | 0 |
| Unpacked size | 3.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Amr |
| Maintainers | a3k |
| Keywords | svelte |

## Links

- npm: https://www.npmjs.com/package/svelte-exec
- Repository: https://github.com/amr3k/svelte-exec
- Homepage: https://github.com/amr3k/svelte-exec#readme
- Issues: https://github.com/amr3k/svelte-exec/issues
- npm.io page: https://npm.io/package/svelte-exec

## Recent versions

- 1.0.2 (latest) — 2023-10-08
- 1.0.1 — 2023-10-08
- 1.0.0-rc4 — 2023-01-13
- 1.0.0-rc3 — 2023-01-13
- 1.0.0-rc2 — 2023-01-13
- 1.0.0-rc1 — 2023-01-13
- 1.0.0 — 2023-01-13

## README

# Svelte-Exec

A tiny svelte component to emit a `load` event when the component is loaded.

<div align=center>
  <img src="./static/favicon.png">
</div>

## Installation

```bash
npm install svelte-exec
```

## Usage

```js
<script>
	import Exec from 'svelte-exec';
</script>

<Exec on:load={() => {
  console.log('Hello World!');
}} />
```

In this example, when the component is loaded it will emit a load event, which can be listened to using the on:load syntax in the parent component.

## Events

- `load`: emitted when the component is loaded.

---
_Source: https://npm.io/package/svelte-exec · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
