art-emini / isType.js

Simple library to check for many types.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

isType.js

isType.js is a Simple library to check for many types.

isType.js works on both browsers and Node.js.

Features

  1. Checks for all types
  2. Checks for HTMLElement, HTMLScriptElement, SVG, Event, and HTMLEmbeds
  3. Checks for regex
  4. Check if link/url is valid
  5. Check if regex with/without flags is valid
  6. And more

Download

Github

  1. Download the latest release from Github.

  2. Import/Require module.

    Browsers

    Link with script tag or import as module

    Node JS

    Require module

  3. Done! Read the docs.

NPM

  1. Run npm i @ksplat/istype
  2. Done! Read the docs.

CDN

Development

Add this script tag: <script defer src="https://cdn.jsdelivr.net/npm/@ksplat/istype@1.0.0/build/isType.js" ></script>

Production

Add this script tag: <script defer src="https://cdn.jsdelivr.net/npm/@ksplat/istype@1.0.0/build/isType.min.js" ></script>

About

Simple library to check for many types.

License:MIT License


Languages

Language:TypeScript 98.6%Language:JavaScript 1.4%