isType.js is a Simple library to check for many types.
isType.js works on both browsers and Node.js.
- Checks for all types
- Checks for HTMLElement, HTMLScriptElement, SVG, Event, and HTMLEmbeds
- Checks for regex
- Check if link/url is valid
- Check if regex with/without flags is valid
- And more
-
Download the latest release from Github.
-
Import/Require module.
Browsers
Link with script tag or import as module
Node JS
Require module
-
Done! Read the docs.
- Run
npm i @ksplat/istype
- Done! Read the docs.
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>