awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
chriso avatar

chriso/validator.js

0
View on GitHub↗
23,744 stars·2,457 forks·JavaScript·MIT·11 views

Validator.js

validator.js is a JavaScript string validation and sanitization library. It provides a set of functions to verify that strings match specific patterns—such as emails, URLs, and alphanumeric formats—and a toolkit for cleaning and transforming text input to remove prohibited characters and trim whitespace.

The library includes utilities for standardizing email addresses by lowercasing domains and removing sub-addressing markers. It also functions as an HTML entity escaper, replacing special characters with entities to prevent the browser from executing text as code.

The project covers capabilities for user input validation, string data sanitization, and form data verification. These tools enable the normalization of data formats and the prevention of XSS attacks through character escaping.

Features

  • String Validation and Normalization - Provides a comprehensive set of functions for validating string formats and normalizing text input.
  • Input Validation - Validates if text entries match required formats like emails, URLs, or phone numbers before processing.
  • Regular Expression Libraries - Checks string patterns against predefined regular expression rules to verify specific data formats.
  • String Sanitizers - Provides utilities to identify and replace prohibited characters in strings to ensure data cleanliness.
  • Input Sanitization - Cleans and validates user-provided string data to prevent injection attacks and ensure data safety.
  • Character Escaping - Replaces special characters with HTML entities to prevent the browser from executing text as malicious code.
  • Data Sanitization Utilities - Provides libraries to ensure incoming string data conforms to expected formats to prevent processing errors.
  • XSS Protections - Prevents cross-site scripting by sanitizing and encoding user-provided strings.
  • Escaping Utilities - Encodes dynamic text content by replacing special characters with HTML entities to prevent script injection.
  • Text Transformation Functions - Offers stateless functions for modifying and transforming string content without side effects.
  • Normalization - Standardizes email addresses by lowercasing domains and removing sub-addressing markers to create unique identifiers.
  • Form Data Validation - Ensures web form submissions conform to specific patterns and business rules before saving to a database.
  • Form Validation - String validation and sanitization library.
  • JavaScript Utilities - Validation library for URLs, emails, and integers.
  • Utility Libraries - String validation and sanitization utilities.
  • Input Validation and Sanitization - Library for string validation and sanitization.

Star history

Star history chart for chriso/validator.jsStar history chart for chriso/validator.js

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Frequently asked questions

What does chriso/validator.js do?

validator.js is a JavaScript string validation and sanitization library. It provides a set of functions to verify that strings match specific patterns—such as emails, URLs, and alphanumeric formats—and a toolkit for cleaning and transforming text input to remove prohibited characters and trim whitespace.

What are the main features of chriso/validator.js?

The main features of chriso/validator.js are: String Validation and Normalization, Input Validation, Regular Expression Libraries, String Sanitizers, Input Sanitization, Character Escaping, Data Sanitization Utilities, XSS Protections.

What are some open-source alternatives to chriso/validator.js?

Open-source alternatives to chriso/validator.js include: jzaefferer/jquery-validation — This project is a jQuery-based form validation library designed to verify HTML form input values on the client side… codeigniter4/codeigniter4 — CodeIgniter is a PHP web framework built on the Model-View-Controller pattern, designed for building full-stack web… arasatasaygin/is.js — is.js is a JavaScript validation library and data type checker. It provides a suite of utilities to verify whether… aplus-framework/validation — This library is a PHP framework designed for validating and sanitizing incoming data. It provides a structured… validatorjs/validator.js — Validator.js is a library of pure, stateless functions designed for the validation and sanitization of string data… arktypeio/arktype — Arktype is a TypeScript runtime validation library and schema orchestrator. It synchronizes TypeScript types with…

Open-source alternatives to Validator.js

Similar open-source projects, ranked by how many features they share with Validator.js.
  • jzaefferer/jquery-validationjzaefferer avatar

    jzaefferer/jquery-validation

    10,327View on GitHub↗

    This project is a jQuery-based form validation library designed to verify HTML form input values on the client side before submission. It functions as an input validator that enforces data integrity constraints through rule-based verification and value normalization. The library focuses on web accessibility compliance by linking error messages to input fields via ARIA attributes, ensuring that screen readers can announce validation failures to the user. The system supports the creation of custom validation rules and the transformation of raw input strings through a normalization pipeline. Co

    JavaScript
    View on GitHub↗10,327
  • codeigniter4/codeigniter4codeigniter4 avatar

    codeigniter4/CodeIgniter4

    5,924View on GitHub↗

    CodeIgniter is a PHP web framework built on the Model-View-Controller pattern, designed for building full-stack web applications. It provides a lightweight toolkit with minimal configuration, organizing application logic into controllers, models, and views for clean separation of concerns. The framework includes a fluent query builder for constructing SQL statements programmatically, PSR-4 autoloading with namespace mapping, and a service-based dependency injection container for managing shared class instances. The framework distinguishes itself through its comprehensive set of built-in tools

    PHPcodeignitercodeigniter4framework-php
    View on GitHub↗5,924
  • arasatasaygin/is.jsarasatasaygin avatar

    arasatasaygin/is.js

    9,078View on GitHub↗

    is.js is a JavaScript validation library and data type checker. It provides a suite of utilities to verify whether variables are primitives, arrays, functions, or specific object types. The project allows for the implementation of custom validation logic and the use of naming namespaces to override default rules and regular expressions. It covers a broad range of validation capabilities, including numeric arithmetic properties, date and time analysis for relative and absolute ranges, and string format verification for patterns such as emails, URLs, and IP addresses. The library also includes

    JavaScript
    View on GitHub↗9,078
  • aplus-framework/validationaplus-framework avatar

    aplus-framework/validation

    237View on GitHub↗

    This library is a PHP framework designed for validating and sanitizing incoming data. It provides a structured approach to ensuring that information conforms to expected formats and integrity requirements before it is processed or stored by an application. The project utilizes a fluent interface to construct validation logic, allowing for the definition of complex rules through chainable methods. It employs a strategy-based execution model where individual validation components are encapsulated and can be dynamically assigned to data fields. When validation fails, the system uses an exception

    PHPaplusaplus-frameworkcomposer
    View on GitHub↗237
See all 30 alternatives to Validator.js→