huent

Tiny 0-dependency library to fluently create/access/destroy html elements and read/write their properties

Usage no npm install needed!

<script type="module">
  import huent from 'https://cdn.skypack.dev/huent';
</script>

README

huent

Travis

A simple library for accessing (subset of) HTMLElement properties in a fluent fashion.

Sample usage:


  const h = require('huent')
  h("p")
    .classes("tesing")
    .innerHtml("currently testing Huent lib")
    .insertToElementBeginning(h("body"));
  
  h
    .find("#uniqId")
    .onclick(()=>console.log("element with #uniqId was clicked"));