0.0.5 • Published 5 years ago

ogle-tr-122b v0.0.5

Weekly downloads
3
License
MIT
Repository
-
Last release
5 years ago

OGLE-TR-122b

OGLE-TR-122b is the smallest star know to man.

OGLE-TR-122b the NPM library is a small abstraction over the DOM's APIs for creating elements. It's a fun, handle minimized experiment. Final build clocks in at 259 bytes of gzip'd ECMAScript 5.

Example

import createElement from "ogle-tr-122b";

document.body.appendChild(
  createElement("div")
    .setAttribute("class", "container")
    .appendChild(
      createElement("h1")
        .setAttribute("class", "title")
        .setTextContent("Please enter name:")
    )
    .appendChild(
      createElement("input")
        .setAttribute("placeholder", "name")
        .setAttribute("autofocus", true)
        .addEventListener("input", event => {
          let { previousSibling, value } = event.target;
          previousSibling.textContent = `Name: ${value}`;
        })
    )
);
0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago