@tomsd/tags.js

1.4.1 • Public • Published

@tomsd/tags.js

Installation

npm install @tomsd/tags.js

Usage

<script src="@tomsd/tags.js/dist/tags.js"></script>
import Tags from "@tomsd/tags.js";
document.body
  .appendChild(
    Tags.div(
      { id: "testid", class: "myclass myclass2" },
      { color:"red" }
    )
  ).innerHTML = "div1";

document.body
  .appendChild(
    Tags.div(
      { class:"myclass3 myclass2" },
      { color:"green" }
    )
  ).innerHTML = "div2";

console.log(
  Tags.getdiv()
    .map(({ innerHTML: html }) => html)
);

console.log(Tags.query(".myclass2"));

console.log(Tags.getdiv({},{ color: "green" }));

Readme

Keywords

none

Package Sidebar

Install

npm i @tomsd/tags.js

Weekly Downloads

11

Version

1.4.1

License

MIT

Unpacked Size

6.08 kB

Total Files

6

Last publish

Collaborators

  • tomsd