# riot-ssr-middleware

> riot-ssr wrapped into Express-compatible middleware for convenience

Latest version **0.0.3** (published 2016-09-10) · ISC license · 0 weekly downloads

## Install

```sh
npm install riot-ssr-middleware
pnpm add riot-ssr-middleware
yarn add riot-ssr-middleware
bun add riot-ssr-middleware
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2016-09-10 |
| First published | 2016-08-26 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Nick Gavrilov |
| Maintainers | ilearnio |
| Keywords | riot, ssr, server-side rendering, express |

## Links

- npm: https://www.npmjs.com/package/riot-ssr-middleware
- Repository: https://github.com/ilearnio/riot-ssr-middleware
- Issues: https://github.com/ilearnio/riot-ssr-middleware/issues
- npm.io page: https://npm.io/package/riot-ssr-middleware

## Dependencies (1)

- [riot-ssr](https://npm.io/package/riot-ssr.md) ^1.1.3

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.0.3 (latest) — 2016-09-10
- 0.0.2 — 2016-08-27
- 0.0.1 — 2016-08-26

## README

riot-ssr-middleware
---

[riot-ssr](https://github.com/ilearnio/riot-ssr) wrapped into an Express-compatible middleware for convenience.

# Installation

```bash
npm i -S riot-ssr-middleware
```

## Usage

```js
const riotRenderMiddleware = require('riot-ssr-middleware')

router.use(riotRenderMiddleware({
  path: '/path/to.tag',
  opts: { ... }
}))
```

or pass it properties from `req` or `res`:

```js
router.use(riotRenderMiddleware((req, res) => ({
  path: req.pathToTag,
  opts: { ... }
})))
```

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