html-tag-interfaces
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

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.

Package Sidebar

Install

npm i html-tag-interfaces

Weekly Downloads

97

Version

1.1.0

License

ISC

Unpacked Size

74.5 kB

Total Files

26

Last publish

Collaborators

  • keplersj