pledge

A pretty little validation library for your browser and server.

npm install pledge
2 downloads in the last month

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.

License

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

npm loves you