Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

hypercycle

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hypercycle

A Cycle.js DOM shim for hyperx

latest
Source
npmnpm
Version
7.0.1
Version published
Maintainers
1
Created
Source

hypercycle

A Cycle.js shim for 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:

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

See hyperx's documentation for more examples.

FAQs

Package last updated on 09 Feb 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts