pledge

v0.2.0
A pretty little validation library for your browser and server.
validation argument args

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 i pledge

Metadata

  • Unknown
  • >=0.6.0
  • Rowan Manning
  • released 7/14/2012

Downloads

Maintainers