Superstruct – Simple & Composable Way to Validate Data in Javascript

samuel Validation 146 , , , ,

Superstruct makes it easy to define interfaces and then validate JavaScript data against them. It’s type annotation API was inspired by Typescript, Flow, Go, and GraphQL, giving it a familiar and easy to understand API.

But Superstruct is designed for validating data at runtime, so it throws detailed runtime errors for you or your end users. This is especially useful in situations like accepting arbitrary input in a REST or GraphQL API. But it can even be used to validate internal data structures at runtime when needed.

Related Post

Valida is a jQuery plugin which provides an easy, fast and lightweight way to make form validations on client-side. It’s Read more

Guardian is a all-purpose form validation jQuery plugin. It was designed to be flexible and easy to extend to meet Read more

Best jQuery plugin to validate form fields Designed for Bootstrap, Foundation, Pure, Semantic UI, UIKit, other.We can distinguish a valid Read more

Forms validation plugin that supports AJAX requests, automatic decoration of fields, localized error messages. Integrable with Angular, Backbone, Knockout.Features: 

ForgJs is a JavaScript lightweight object validator library. You can customize and can write complex validation rules.

v8n is a customizable, ultimate JavaScript validation library with dead simple fluent API. Features Fluent and chainable API Useful standard Read more

jQuery Validate is a lightweight jQuery plugin for form validation.

Validatr is a jQuery plugin that relies on using modern HTML5 input attributes to perform validation. Validatr supports HTML5 new input types such Read more

Go