npm.io
1.1.0 • Published 4 years ago

html-tag-interfaces

Licence
ISC
Version
1.1.0
Deps
0
Size
73 kB
Vulns
0
Weekly
0

html-tag-interfaces

npm npm Codecov Bundle Size Conventional Commits

Map HTML tag names to their interfaces.

Installation

Install using npm:

$ npm install html-tag-interfaces

Or use in browsers with Skypack:

<script type="module">
  import { interfaces } from "https://cdn.skypack.dev/html-tag-interfaces";
</script>

Usage

Use the interfaces export to get the DOM interface for an HTML tag name:

import { interfaces } from "html-tag-interfaces";

console.log(interfaces["div"]); // => HTMLDivElement

License

Copyright 2022 Kepler Sticka-Jones. Licensed ISC.

Keywords