uger
TypeScript icon, indicating that this package has built-in type declarations

0.8.7 • Public • Published

UGER

Example

typesript
import { body } from "uger";

body.add("button") // Creates a button element in the body of the document
	.text("Click here") // Changes innerText of this element
	.on("click", () => // Adds event listener on click event
		body.add("p") // Creates new element
			.text("Wow you clicked!!!")
			.once("click", (ev, elem) => elem.remove()); // Deletes new element
	);

Readme

Keywords

Package Sidebar

Install

npm i uger

Weekly Downloads

2

Version

0.8.7

License

MIT

Unpacked Size

22.1 kB

Total Files

13

Last publish

Collaborators

  • engus-maze