validator.js - :interrobang:轻量级的JavaScript表单验证,字符串验证。没有依赖,支持UMD,~3kb。

  •        19

:interrobang:轻量级的JavaScript表单验证,字符串验证。没有依赖,支持UMD,~3kb。

http://jaywcjlove.github.io/validator.js
https://github.com/jaywcjlove/validator.js

Tags
Implementation
License
Platform

   




Related Projects

validator.js - String validation

  •    Javascript

A library of string validators and sanitizers. This library validates and sanitizes strings only.

validatorjs - A data validation library in JavaScript for the browser and Node

  •    Javascript

The validatorjs library makes data validation in JavaScript very easy in both the browser and Node.js. This library was inspired by the Laravel framework's Validator. To apply validation rules to the data object, use the same object key names for the rules object.

schema-inspector - Schema-Inspector is an JSON API sanitisation and validation module.

  •    Javascript

Schema-Inspector is a powerful tool to sanitize and validate JS objects. It's designed to work both client-side and server-side and to be scalable with allowing asynchronous and synchronous calls.(Or download async.js and schema-inspector.js manually).

express-validator - An express.js middleware for node-validator.

  •    Javascript

An express.js middleware for validator. Also please note that, starting with v5.0.0, no new features will be accepted into the legacy API. Only bug fixes will be made.


mongoose-validator - Validators for mongoose models utilising validator.js

  •    Javascript

Validators for Mongoose schemas utilising validator.js. Mongoose Validator simply returns Mongoose style validation objects that utilises validator.js for the data validation.

jQuery-Form-Validator - jQuery plugin that makes it easy to validate user input while keeping your HTML markup clean from javascript code

  •    Javascript

jQuery Form Validator is a feature rich and multilingual jQuery plugin that makes it easy to validate user input while keeping your HTML markup clean from javascript code. Even though this plugin has a wide range of validation functions it's designed to require as little network traffic as possible. This is achieved by grouping together validation functions in "modules", making it possible to load only those functions that's needed to validate a particular form.

class-validator - Validation made easy using TypeScript decorators.

  •    TypeScript

Allows use of decorator and non-decorator based validation. Internally uses validator.js to perform validation. Class-validator works on both browser and node.js platforms. Note: Please use at least npm@6 when using class-validator as from npm@6 the dependency tree is flatterned what is good for us.

vee-validate - ✔ Form validation for Vue

  •    Javascript

vee-validate is a plugin for Vue.js that allows you to validate input fields and display errors. You don't have to do anything fancy in your app -- most of the work goes into the html. You only need to specify for each input what kind of validators should be used when the value changes. The errors will be automatically generated. The plugin offers many validations out of the box.

JSV - A JavaScript implementation of an extendable, fully compliant JSON Schema validator.

  •    Javascript

A JSON validator is a program that takes JSON data and, with a provided schema, will ensure that the provided JSON is structured in the way defined by the schema. This ensures that if validation has passed, the JSON instance is guaranteed to be in the expected format. It will also provide an explanation on why a particular instance failed validation. There is no one way to validate JSON, just like there is no one way to validate XML. Even the JSON Schema specification has gone through several revisions which are not 100% backwards compatible with each other. To solve the issue of using numerous schemas already written to older specifications, JSV provides customizable environments to validate your JSON within.

Generic HTML Form Validator

  •    Javascript

A generic HTML Form validator. No need to ever touch the JS code for form validation. It lets you use extended HTML attributes for complex validation tasks such as required field, dependent required fields, existential regular expressions, messages, etc.

superstruct - A simple and composable way to validate data in Javascript.

  •    Javascript

A simple and composable way to validate data in JavaScript. Superstruct makes it easy to define interfaces and then validate JavaScript data against them. Its type annotation API was inspired by Typescript, Flow, Go, and GraphQL, giving it a familiar and easy to understand API.

card-validator - Validate credit cards as users type.

  •    Javascript

Credit Card Validator provides validation utilities for credit card data inputs. It is designed as a CommonJS module for use in Node.js, io.js, or the browser. It includes first class support for 'potential' validity so you can use it to present appropriate UI to your user as they type. A typical use case in a credit card form is to notify the user if the data they are entering is invalid. In a credit card field, entering “411” is not necessarily valid for submission, but it is still potentially valid. Conversely, if a user enters “41x” that value can no longer pass strict validation and you can provide a response immediately.

formsy-react - A form input builder and validator for React JS

  •    Javascript

I wrote an article on forms and validation with React JS, Nailing that validation with React JS, the result of that was this extension. The main concept is that forms, inputs and validation is done very differently across developers and projects. This extension to React JS aims to be that "sweet spot" between flexibility and reusability.

fast-xml-parser - Validate XML, Parse XML to JS/JSON and vise versa, or parse XML to Nimn rapidly without C/C++ based libraries and no callback

  •    Javascript

This project welcomes contributors. If you have a feature you'd like to see implemented or a bug you'd liked fixed, the best and fastest way to make that happen is to implement it and submit a PR. Basic knowledge of JS is sufficient. Feel free to ask for any guidance. To use it from CLI Install it globally with -g option.

govalidator - Validate Golang request data with simple rules

  •    Go

Validate golang request data with simple rules. Highly inspired by Laravel's request validation. Note: Array, map, slice can be validated by adding custom rules.

async-validator - validate form asynchronous

  •    Javascript

The following is modified from earlier version of async-validate. first: Boolean, Invoke callback when the first validation rule generates an error, no more validation rules are processed. If your validation involves multiple asynchronous calls (for example, database queries) and you only need the first error use this option.

Android-Validator - Form Validator Library for Android

  •    Java

Form Validator Library for Android is based on Zend_Validator coded in PHP. This library is intended to simplify and streamline the code to validate a form Android. For the moment, the form can just handle the EditText. Other elements will emerge in future versions.