JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 25
  • Score
    100M100P100Q46646F
  • License ISC

Useful for validating inputs server side

Package Exports

  • input-validate

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

Readme

input-validate

Validating inputs server side using RegEx

Install

npm i -S input-validate

How to use

      var TEST = require('input-validate');
  
      if(TEST.onlyNumber(123)){
        console.log("It is a valid number, so add your stuff here")
      }