0.71.1 • Published 1 year ago

@xeserv/xeact v0.71.1

Weekly downloads
-
License
mit
Repository
github
Last release
1 year ago

Xeact

enbyware NPM downloads NPM version dependent repos license language count repo size

Xeact is a high performance, developer-efficient and overall ballin' femtoframework for productive development in Javascript. It will take everything that is complicated about frontend web development and throw it in the trash.

import { g, h, x } from "./xeact.js";

(async () => {
  const resp = await fetch("https://httpbin.org/headers");
  const data = await resp.json();

  // Get element with ID "userAgent" and set its innerText
  g("userAgent").innerText = data.headers["User-Agent"];

  // Remove all children from element with ID "headerList"
  let l = g("headerList");
  x(l);

  // Create a <li> element for every key in `data.headers`,
  // set the `innerText` property to the contents of each header,
  // and append them all to the header list
  l.append(...Object.entries(data.headers).map((e) => h("li", { innerText: `${e[0]}: ${e[1]}` })));
})();

The cloud's the limit!

0.70.0

1 year ago

0.71.1

1 year ago

0.71.0

1 year ago

0.69.69

2 years ago

0.69.70

2 years ago

0.69.71

2 years ago

0.69.0

2 years ago

0.0.69

2 years ago