# svelte-router-simple

> ## Installation

Latest version **1.0.8** (published 2020-06-24) · ISC license · 0 weekly downloads

## Install

```sh
npm install svelte-router-simple
pnpm add svelte-router-simple
yarn add svelte-router-simple
bun add svelte-router-simple
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.8 |
| Published | 2020-06-24 |
| First published | 2020-05-03 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 4.5 KB |
| Known vulnerabilities | 0 (+7 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | flowwwie |

## Links

- npm: https://www.npmjs.com/package/svelte-router-simple
- npm.io page: https://npm.io/package/svelte-router-simple

## Dependencies (3)

- [svelte](https://npm.io/package/svelte.md) ^3.23.2
- [node-log-simple](https://npm.io/package/node-log-simple.md) ^1.0.1
- [array-flat-polyfill](https://npm.io/package/array-flat-polyfill.md) ^1.0.1

## Recent versions

- 1.0.8 (latest) — 2020-06-24
- 1.0.6 — 2020-06-12
- 1.0.5 — 2020-06-05
- 1.0.4 — 2020-05-30
- 1.0.3 — 2020-05-30
- 1.0.2 — 2020-05-30
- 1.0.1 — 2020-05-30
- 1.0.0 — 2020-05-30
- 0.0.0 — 2020-05-03

## README

# svelte-router-simple

## Installation

```bash
yarn add svelte-router-simple
```

## Usage

```javascript
  import Router from "svelte-router-simple";

  const routes = [
    {
      exact: "/", // Specify an exact path match
      component: HomeComponent
    },
    {
      prefix: "/", // Specify a prefix path match, and attempt to match child routes
      component: NotFound, // Used if no child routes match
      routes: [
        { exact: "/videos", component: VideosComponents },
        { exact: "/pictures", component: PicturesComponent },
      ],
    },
  ];
</script>

<div id="app">
  <Router {routes} />
</div>
```

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