JSPM

kaantypes

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q13865F
  • License WTFPL

A small library designed to check types in Javascript

Package Exports

  • kaantypes

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (kaantypes) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Javascript Checker

This is mostly a library for creating short-hands to common boolean expressions used for input validation. For example,

  • Checking if input is a non-empty Array
  • Testing if input is an object with the necessary fields

This library was developed in order to cut down on coding time required for front-end facing input validation, as well as provide a reliable and consistent method of performing input validation. This reduces the probability of validation leaks and allows for any validation leaks to be easily plugged thoughout the whole application.