1.0.0 • Published 3 years ago

@ksplat/istype v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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

  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>