niceue / Nice Validator
Simple, smart and pleasant validation solution.
Stars: ✭ 587
Programming Languages
javascript
184084 projects - #8 most used programming language
Projects that are alternatives of or similar to Nice Validator
Validator.js
String validation
Stars: ✭ 18,842 (+3109.88%)
Mutual labels: validation, validator, validate
Approvejs
A simple JavaScript validation library that doesn't interfere
Stars: ✭ 336 (-42.76%)
Mutual labels: validation, validator, form-validation
Bootstrap Validate
A simple Form Validation Library for Bootstrap 3 and Bootstrap 4 not depending on jQuery.
Stars: ✭ 112 (-80.92%)
Mutual labels: validation, validate, form-validation
Vee Validate
✅ Form Validation for Vue.js
Stars: ✭ 8,820 (+1402.56%)
Mutual labels: validation, validator, validate
python-valid8
Yet another validation lib ;). Provides tools for general-purpose variable validation, function inputs/outputs validation as well as class fields validation. All entry points raise consistent ValidationError including all contextual details, with dynamic inheritance of ValueError/TypeError as appropriate.
Stars: ✭ 24 (-95.91%)
Mutual labels: validation, validator, validate
Form Validation.js
The most customizable validation framework for JavaScript.
Stars: ✭ 127 (-78.36%)
Mutual labels: validation, validate, form-validation
checker
Golang parameter validation, which can replace go-playground/validator, includes ncluding Cross Field, Map, Slice and Array diving, provides readable,flexible, configurable validation.
Stars: ✭ 62 (-89.44%)
Mutual labels: validation, validator, validate
Formhelper
ASP.NET Core - Transform server-side validations to client-side without writing any javascript code. (Compatible with Fluent Validation)
Stars: ✭ 155 (-73.59%)
Mutual labels: validation, validator, form-validation
pyvaru
Rule based data validation library for python 3.
Stars: ✭ 17 (-97.1%)
Mutual labels: validation, validator, form-validation
FilterInputJs
Tiny and Powerful Library for limit an entry (text box,input) as number,string or more...
Stars: ✭ 37 (-93.7%)
Mutual labels: validator, form-validation, validate
Validator.js
⁉️轻量级的 JavaScript 表单验证,字符串验证。没有依赖,支持 UMD ,~3kb。
Stars: ✭ 486 (-17.21%)
Mutual labels: validation, validator, validate
Validate
A simple jQuery plugin to validate forms.
Stars: ✭ 298 (-49.23%)
Mutual labels: validation, validator, validate
Validate
⚔ Go package for data validation and filtering. support Map, Struct, Form data. Go通用的数据验证与过滤库,使用简单,内置大部分常用验证、过滤器,支持自定义验证器、自定义消息、字段翻译。
Stars: ✭ 378 (-35.6%)
Mutual labels: validation, validator, validate
validation
Validation on Laravel 5.X|6.X|7.X|8.X
Stars: ✭ 26 (-95.57%)
Mutual labels: validation, validator
svelte-form
JSON Schema form for Svelte v3
Stars: ✭ 47 (-91.99%)
Mutual labels: validation, form-validation
excel validator
Python script to validate data in Excel files
Stars: ✭ 14 (-97.61%)
Mutual labels: validation, validator
thai-citizen-id-validator
🦉 Validate Thai Citizen ID with 0 dependencies 🇹🇭
Stars: ✭ 35 (-94.04%)
Mutual labels: validation, validator
fefe
Validate, sanitize and transform values with proper TypeScript types and zero dependencies.
Stars: ✭ 34 (-94.21%)
Mutual labels: validation, validate
js-form-validator
Javascript form validation. Pure JS. No jQuery
Stars: ✭ 38 (-93.53%)
Mutual labels: validation, validator
NZ-Bank-Account-Validator
A small, zero dependency NZ bank account validation library that runs everywhere.
Stars: ✭ 15 (-97.44%)
Mutual labels: validation, validator
nice-validator
Simple, smart and pleasant validation solution.
Download the latest release or install package via npm or bower
$ npm install nice-validator
$ bower install nice-validator
Getting started
jQuery 1.7+
1. Include2. Include nice-validator
width <script>
tag:
<script src="path/to/nice-validator/jquery.validator.min.js?local=en"></script>
via webpack
require('nice-validator')
require('nice-validator/local/zh-CN')
via module loader Requirejs:
requirejs.config({
paths: {
jquery: 'http://cdn.jsdelivr.net/jquery/1.12.3/jquery.min',
validator: 'path/to/nice-validator/local/en'
},
shim: {
validator: ['path/to/nice-validator/jquery.validator.js?css']
}
});
require(['validator']);
3. Config rules
<form id="form1">
<input type="text" name="field1" data-rule="required;email;remote(checkEmail.php)">
<input type="text" name="field2" data-rule="required;length(6~16)">
<input type="text" name="field3" data-rule="match(field2)">
<input type="text" name="field4" data-rule="range(0~100)" id="field4">
<input type="text" name="field5" data-rule="required(#field4:filled)">
<input type="text" name="field6" data-rule="required; mobile|email;" data-msg="Please fill mobile or email">
<input type="text" name="field7"
data-rule="required; !digits; length(6~)"
data-msg-digits="Please not fill pure digits"
data-msg-length="Please fill at least {1} characters.">
<input type="checkbox" name="field8" data-rule="checked">
... yadda yadda ...
</form>
It has started to work when you use native submitting.
4. Handle submit (Optional)
$("#form1").on('valid.form', function(){
// You can do something, then submit form by native
// this.submit();
// or submit form by ajax
$.post("path/to/server", $(this).serialize())
.done(function(d){
// do something
});
});
Documention
Browser Support
- IE6+
- Chrome
- Safari 4+
- Firefox 9+
- Opera
Bugs / Contributions
- Report a bug
- To contribute or send an idea, github message me or fork the project
Build
Install dependencies:
$ npm install -g gulp
$ npm install
Run test and build:
$ gulp
License
nice-validator is available under the terms of the MIT License.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].