Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

pledge

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pledge

A pretty little validation library for your browser and your server.

Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

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.

Keywords

validation

FAQs

Package last updated on 17 Mar 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts