pledgedeprecated

A pretty little validation library for your browser and server.

Usage no npm install needed!

<script type="module">
  import pledge from 'https://cdn.skypack.dev/pledge';
</script>

README

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.