npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

react-inube-validations

v1.0.3

Published

Reusable validation helpers for APIsLive UI.

Readme

react-inube-validations

Reusable validation helpers for APIsLive UI. This library contains ONLY form validation functions.

Install

npm install react-inube-validations

Usage

You can import all primary validation functions directly from the package:

import { IsNumeric, IsEmail, IsAlpha, IsMobileNumber } from "react-inube-validations";

const result = IsEmail("[email protected]"); 
// Returns true if valid, or an error string (e.g., "Not a valid Email") if invalid.

Alternatively, you can import the V3 validation object which groups many common validations:

import validationFunc from "react-inube-validations/ValidationFunctionV3";

const result = validationFunc.IsNumericDot("123.45");

Available Validation Methods

These methods return true if the validation passes, or an error string (e.g., "Allows only number") if it fails.

String / Character Validations

  • IsAlpha: Accepts only alphabetic characters.
  • IsAlphaNum: Accepts alphabets and numbers.
  • IsAlphaSpace: Accepts alphabets and spaces.
  • IsAlphaNumSpace: Accepts alphabets, numbers, and spaces.
  • IsAlphaNumSpecial: Accepts alphabets, numbers, and basic special characters (like _, -, /, .).
  • IsFreetextNoSpace: Accepts text without a leading space.
  • IsSpecialChar: Accepts text with special characters.
  • IsSentence: Validates a sentence structure.
  • IsAlphaAndSpecialChar: Accepts alphabets and special characters.
  • IsAlphaCommaAndQuote: Accepts alphabets, commas, and quotes.

Numeric Validations

  • IsNumeric: Accepts only digits.
  • IsNumericNonZero: Accepts only numbers where the first digit is non-zero.
  • IsFloatingNumeric / IsFloat: Accepts numeric values including decimals.
  • IsNumaricSpecial: Accepts numbers and certain special characters like +, -, (, ).
  • IsNumaricSpecialNoSpace: Accepts numbers and special characters but rejects spaces.
  • IsNumaricPercentage: Accepts numbers and the % character.
  • IsNumericPercentageZerotohundred: Accepts percentage values between 0 and 100.
  • NumBetween / IsNumBetween: Checks if a number falls within a specific min/max range.

Length Validations

  • LengthNotLessThen(str, num): Validates that a string's length is at least num.
  • LengthNotGreaterThen(str, num): Validates that a string's length is at most num.
  • LengthEqualTo(str, num): Validates that a string's length is exactly num.

Specific Format Validations

  • IsEmail: Validates standard email addresses.
  • validateMailID / isVerifiedEmailDomain: Strict email validation.
  • IsMobileNumber: Validates a 10-digit mobile number.
  • IsMobileNumberNonZero: Validates a 10-digit mobile number starting with a non-zero.
  • IsPan: Validates Indian PAN card formats.
  • IsGstNo: Validates Indian GST numbers.
  • IsPassport: Validates Passport numbers.
  • IsPinCode: Validates postal PIN codes.
  • IsIFSCode: Validates bank IFSC codes.
  • IsCKYC: Validates CKYC identifiers.
  • IsPolicyNo: Validates insurance policy numbers.
  • DateValidation / DateValidation1: Validates proper date formatting.
  • IsAge: Validates a logical age value.
  • AddressRegex / LicAddressRegex / ReplaceAddressRegex: Validates complex address strings.

Type Validations

  • isBoolean: Checks if a value is strictly boolean.
  • isFunction: Checks if a value is a function.

Publish

npm login
npm publish