@ksplat/istype

1.0.0 • Public • Published

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>

Package Sidebar

Install

npm i @ksplat/istype

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

27.7 kB

Total Files

21

Last publish

Collaborators

  • ksplat