Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
hyperapp-html
Advanced tools
Html helpers for hyperapp and every h
.
This library is builded using meta programing through template engine to allow the use of tree shaking and a better optimisation.
Using npm:
npm i hyperapp-html
Then setup a build pipeline and import it.
import { div, h1 } from "hyperapp-html"
Using a CDN:
<script src="https://unpkg.com/hyperapp-html"></script>
Then access the all hmtl tags or the factory from hyperappHtml
in the global scope as div, h1, etc...
const vnode = h1({ id: "title" }, "Hi.")
app({
state: {
title: "Hi."
},
view: state => div({}, [
h1(null, state.title)
])
})
Type: (props: object, children: vnode[]) => vnode
Call the proper h
to return a vnode according to the tag name.
const vnode = tagname({ id: "title" }, "Hi.")
Type: (h: function) => tagsObject
Return a calalog of html helpers that call the given h
then return a vnode.
const { tagname } = html(h)
const vnode = tagname({ id: "title" }, "Hi.")
hyperapp-html is MIT licensed. See LICENSE.
FAQs
Html helpers for hyperapp `h`
We found that hyperapp-html demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.