html-tag-interfaces
v1.1.0
Published
Map HTML tag names to their interfaces
Downloads
132
Maintainers
Readme
html-tag-interfaces
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.