@guolao/is-html-tag
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

is-html-tag

Check if the string is an HTML tag name.

gitHub license

Installation

# npm
npm i @guolao/is-html-tag

# yarn
yarn add @guolao/is-html-tag

# pnpm
pnpm add @guolao/is-html-tag

Usage

import isHTMLTag from '@guolao/is-html-tag'

isHTMLTag('a')   // true
isHTMLTag('div') // true

isHTMLTag('dog') // false
isHTMLTag('foo') // false

// custom element
customElementRegistry.define('my-custom-element', MyCustomElement)
isHTMLTag('my-custom-element') // true

License

MIT

Package Sidebar

Install

npm i @guolao/is-html-tag

Weekly Downloads

2

Version

0.0.1

License

MIT

Unpacked Size

5.53 kB

Total Files

9

Last publish

Collaborators

  • guolao