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.
validation types interface structs schema api array assert cast check checker collection data error express hapi invalid joi json list model object orm scalar struct throw type valid validate validatorA simple library for data validation
validation data valid es6 library validateA node library that accurately validates phone numbers. It tries its best to abide by NANPA standards, but international numbers are not yet supported.Other validators incorrectly mark them as valid. To read more about how and why fonz.js was written, check out the blog post here.
phone validator mobile cellphone validCan be useful when you have an unsorted list of versions, like git tags, and want to use them as semver versions.Include prereleases, like 1.2.3-alpha.3.
semver semantic version versions versioning list array clean sort cleaned sorted valid validated filter filtered git tag tagsUse flow type information at runtime. Automatically generate validation code, ORM schemas, etc from the type definition. Then you can check various objects to make sure they match User at runtime.
orm flow type static-types runtime validate validation object valid typecheckThis plugin adds a unique validation for Objection.js models.NOTE: Unique validation at update only works with $query methods.
objectionjs unique validation plugin plugins models entity objection uniqueness valid validate validatorValidate an object against a schema. This is the schema validation library you actually wanted.This library is only responsible for type-checking and leaves the requires, filtering, etc. to other libraries.
schema validation valid object typePass it any value and you're are guaranteed to get back an Error with name, message, and stack properties.Can be useful when you don't control all the places an error can be thrown or rejected. A user could for example throw a string or an error without a stack property.
error ensure valid err stack message name string to make fix clean convertValidate object properties in javascript. Each error has a .path, describing the full path of the property that failed validation, and a .message property.
validation validate valid objectThis is a simple module to validate IP address, check IP address version, check if IP is within a range. This started out as range_check but it does much more than just checking ranges but since it's already got a large amount of downloads (37,115 downloads in the last month as of this writing) I'll keep the name the same even though I kinda want to change it to something better.
ip-address cidr v4 v6 valid range addr ip ipv4 ipv6Strongly-typed JavaScript object with support for validation and error handling. This is a light weight open source package for the server and browser (using module bundler) written with TypeScript. It"s actively maintained, well tested and already used in production environments. The source code is available on GitHub where you can also find our issue tracker.
model schema graphql nested-models validation error-handling document object orm odm unopinionated db typescript type casting nodejs backend frontend modeling map mapping context contextify rawmodel class database storage structure structuring error errors handling handle valid validate validator validating cast history tracking change field fields serialize serialization serializableThis plugin integrates RawModel.js framework into your Vue.js application. RawModel.js is a simple framework which provides a strongly-typed JavaScript object with support for validation and error handling. It has a rich API which significantly simplifies server-side and client-side data validation and manipulation. Because it's an unopinionated framework it flawlessly integrates with popular modules like vuex, apollo-client and other related libraries.
vue rawmodel model schema form validation reactivity debounce promise plugin typescript classes vue.js orm odm map mapping context contextify modeling document class apollo graphql request storage structure structuring error errors handling handle valid validate validator validating type cast casting history tracking change field fieldsString validator for more.
validator string-matching validate valid stringFast and simple JSON validator
schema json-validation json valid validatorA simple JavaScript data validation library.
node validator validator.js valid validate vdjs
We have large collection of open source products. Follow the tags from
Tag Cloud >>
Open source products are scattered around the web. Please provide information
about the open source projects you own / you use.
Add Projects.