is-html-tag

1.4.0 • Public • Published

is-html-tag

Function to check whether tag is a proper html tag or not.

Setup

    npm install is-html-tag --save

How to use it

    const isHTMLTag = require('is-html-tag'), 
          myTag = "div";
    
    // your beautiful code
 
    if(isHTMLTag(myTag){
        // whatever you want to do with your html tag 
    } else {
        // whatever you want to do with your non html tag
    }

Built With

License

This project is licensed under the MIT License

/is-html-tag/

    Package Sidebar

    Install

    npm i is-html-tag

    Weekly Downloads

    9

    Version

    1.4.0

    License

    ISC

    Last publish

    Collaborators

    • alancampora