html-tag-interfaces

Map HTML tag names to their interfaces

Usage no npm install needed!

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

README

html-tag-interfaces

npm npm Codecov Bundle Size

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.