pledge

A pretty little validation library for your browser and server.

Pledge (beta)

Pledge is a pretty little validation library for your browser and your server. It has a simple and expressive syntax which makes validating variables (boring) an enjoyable task!

if (pledge(123).odd().between(1, 1000).passes) {
    // Do something awesome!
}

To learn more about how to use Pledge, read the getting started guide and then move onto the full Pledge documentation.

Copyright 2012, Rowan Manning
Dual licensed under the MIT or GPL Version 2 licenses.