@ksplat/istype
v1.0.0
Published
Simple library to check for many types.
Downloads
1
Maintainers
Readme
isType.js
MIT LICENSE
isType.js is a Simple library to check for many types.
isType.js works on both browsers and Node.js.
Features
- 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
Github
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.
NPM
- Run
npm i @ksplat/istype
- Done! Read the docs.
CDN
Development
Add this script tag: <script defer src="https://cdn.jsdelivr.net/npm/@ksplat/[email protected]/build/isType.js" ></script>
Production
Add this script tag: <script defer src="https://cdn.jsdelivr.net/npm/@ksplat/[email protected]/build/isType.min.js" ></script>