# hypercycle

> A Cycle.js DOM shim for hyperx

Latest version **7.0.1** (published 2018-02-09) · ISC license · 0 weekly downloads

## Install

```sh
npm install hypercycle
pnpm add hypercycle
yarn add hypercycle
bun add hypercycle
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 7.0.1 |
| Published | 2018-02-09 |
| First published | 2016-11-19 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 3.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Whymarrh Whitby |
| Maintainers | whymarrh |

## Links

- npm: https://www.npmjs.com/package/hypercycle
- Repository: https://github.com/whymarrh/hypercycle
- Issues: https://github.com/whymarrh/hypercycle/issues
- npm.io page: https://npm.io/package/hypercycle

## Dependencies (2)

- [hyperx](https://npm.io/package/hyperx.md) ^2.3.2
- [@cycle/dom](https://npm.io/package/@cycle/dom.md) ^19.3.0

## Recent versions

- 7.0.1 (latest) — 2018-02-09
- 7.0.0 — 2017-11-06
- 6.0.3 — 2017-10-07
- 6.0.1 — 2017-09-09
- 6.0.0 — 2017-07-22
- 5.0.0 — 2017-04-02
- 4.0.1 — 2017-03-12
- 4.0.0 — 2017-02-13
- 3.0.0 — 2016-12-15
- 2.2.0 — 2016-12-10
- 2.1.0 — 2016-11-29
- 2.0.1 — 2016-11-23
- 2.0.0 — 2016-11-19
- 1.0.1 — 2016-11-19
- 1.0.0 — 2016-11-19
- … 3 more at https://npm.io/package/hypercycle/versions

## README

hypercycle
==========

A [Cycle.js](https://cycle.js.org) shim for [hyperx](https://github.com/substack/hyperx). (It's an awful name, I know, sorry.)

Where Cycle.js uses Snabbdom for its DOM driver and hyperx does not work with Snabbdom out of the box, this module translates what hyperx wants into something that Snabbdom can use. The result is a function that can be used to write HTML inside a template literal and get back the corresponding vdom tree.

API
---

This module exports but a single function:

```js
const {html} = require(`hypercycle`);
const vdom = html`<div>This is some HTML showing that 3 + 4 is ${3 + 4}</div>`;
```

See [hyperx](https://github.com/substack/hyperx)'s documentation for more examples.

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