Yup is a JavaScript object schema validator and object parser. The API and style is stolen heavily inspired by Joi, which is an amazing library but is generally too large and difficult to package for use in a browser. Yup is a leaner in the same spirit without some of the fancy features. You can use it on the server as well, but in that case you might as well just use Joi.

Yup is also a good bit less opinionated than joi, allowing for custom transformations and async validation. It also allows "stacking" conditions via when for properties that depend on more than one other sibling or child property. Yup separates the parsing and validating functions into separate steps so it can be used to parse json separate from validating it, via the cast method.

Monthly Downloads: 0
Programming language: JavaScript
License: MIT License
Tags: Data Validation     Validator     Schema    

Yup alternatives and related modules

Based on the "Data Validation" category

Do you think we are missing an alternative of Yup or a related project?

Add another 'Data Validation' Module

Yup Recommendations

There are no recommendations yet. Be the first to promote Yup!

Have you used Yup? Share your experience. Write a short recommendation and Yup, you and your project will be promoted on Awesome Node.js.
Recommend Yup

Recently added Yup resources

Do you know of a usefull tutorial, book or news relevant to Yup?
Be the first to add one!