alioygur / Is
Licence: mit
Micro check library in Golang.
Stars: ✭ 61
Labels
Projects that are alternatives of or similar to Is
Indicative
Indicative is a simple yet powerful data validator for Node.js and browsers. It makes it so simple to write async validations on nested set of data.
Stars: ✭ 412 (+575.41%)
Mutual labels: validation, validator
Validation
The most awesome validation engine ever created for PHP
Stars: ✭ 5,484 (+8890.16%)
Mutual labels: validation, validator
Validator.js
⁉️轻量级的 JavaScript 表单验证,字符串验证。没有依赖,支持 UMD ,~3kb。
Stars: ✭ 486 (+696.72%)
Mutual labels: validation, validator
Approvejs
A simple JavaScript validation library that doesn't interfere
Stars: ✭ 336 (+450.82%)
Mutual labels: validation, validator
Cti Stix Validator
OASIS TC Open Repository: Validator for STIX 2.0 JSON normative requirements and best practices
Stars: ✭ 24 (-60.66%)
Mutual labels: validation, validator
Validate
⚔ Go package for data validation and filtering. support Map, Struct, Form data. Go通用的数据验证与过滤库,使用简单,内置大部分常用验证、过滤器,支持自定义验证器、自定义消息、字段翻译。
Stars: ✭ 378 (+519.67%)
Mutual labels: validation, validator
Nice Validator
Simple, smart and pleasant validation solution.
Stars: ✭ 587 (+862.3%)
Mutual labels: validation, validator
js-form-validator
Javascript form validation. Pure JS. No jQuery
Stars: ✭ 38 (-37.7%)
Mutual labels: validation, validator
Swagger Parser
Swagger 2.0 and OpenAPI 3.0 parser/validator
Stars: ✭ 710 (+1063.93%)
Mutual labels: validation, validator
Ismailfine
A simple (but correct) library for validating email addresses. Supports mail addresses as defined in rfc5322 as well as the new Internationalized Mail Address standards (rfc653x). Based on https://github.com/jstedfast/EmailValidation
Stars: ✭ 9 (-85.25%)
Mutual labels: validation, validator
Swagger Cli
Swagger 2.0 and OpenAPI 3.0 command-line tool
Stars: ✭ 321 (+426.23%)
Mutual labels: validation, validator
Graphql Constraint Directive
Validate GraphQL fields
Stars: ✭ 401 (+557.38%)
Mutual labels: validation, validator
Validate
A simple jQuery plugin to validate forms.
Stars: ✭ 298 (+388.52%)
Mutual labels: validation, validator
Express Validator
An express.js middleware for validator.js.
Stars: ✭ 5,236 (+8483.61%)
Mutual labels: validation, validator
validation
Validation on Laravel 5.X|6.X|7.X|8.X
Stars: ✭ 26 (-57.38%)
Mutual labels: validation, validator
excel validator
Python script to validate data in Excel files
Stars: ✭ 14 (-77.05%)
Mutual labels: validation, validator
Class Validator
Decorator-based property validation for classes.
Stars: ✭ 6,941 (+11278.69%)
Mutual labels: validation, validator
Grpc Dotnet Validator
Simple request message validator for grpc.aspnet
Stars: ✭ 25 (-59.02%)
Mutual labels: validation, validator
is
Micro check library in Golang.
Installation
go get github.com/alioygur/is
Not only regex
It works with runes as long as is it possible.
Part of source code;
// Alpha check if the string contains only letters (a-zA-Z). Empty string is valid.
func Alpha(s string) bool {
for _, v := range s {
if ('Z' < v || v < 'A') && ('z' < v || v < 'a') {
return false
}
}
return true
}
Usage
package main
import "github.com/alioygur/is"
import "log"
func main() {
is.Email("[email protected]") // true
is.Numeric("Ⅸ") // false
is.UTFNumeric("Ⅸ") // true
}
for more documentation godoc
Contribute
we are waiting your contribution
- Report problems
- Add/Suggest new features/recipes
- Improve/fix documentation
Many thanks to our contributors: contributors
Thanks & Authors
I use code/got inspiration from these excellent libraries:
- arasatasaygin/is.js Micro check library
- asaskevich/govalidator [Go] Package of validators and sanitizers for strings, numerics, slices and structs
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].