JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 40617
  • Score
    100M100P100Q161971F
  • License MIT

All in one Javascript validator

Package Exports

  • oslllo-validator

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 (oslllo-validator) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Cover Image

build npm Coverage Status

Documentation, Installation, and Usage Instructions

See the full installation and usage documentation HERE.

The Objective

Create an all in one Javascript validator for my application(s).

The Problem / Why

I wanted an all in one JS validator.

Usage Examples

Check if value is actual NaN

const is = require("oslllo-validator");

is.actualNaN(NaN); // => True
is.actualNaN(null); // => False
is.actualNaN(undefined); // => False

Check if UUID

const is = require("oslllo-validator");

is.UUID("A987FBC9-4BED-3078-CF07-9141BA07C9F3", 3); // => True
is.UUID("xxxA987FBC9-4BED-3078-CF07-9141BA07C9F3", 3); // => False

Throw exception on false

If you want to throw an exception on false then check out oslllo-validator-exception HERE