Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-loose-forms.validation

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-loose-forms.validation

A grab bag of validation functions for react-loose-forms

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

react-loose-forms.validation

A grab bag of validation functions for react-loose-forms

Click here to read more about how they work.

There are 2 ways of getting a validation function.

For example the percent function:

var v = require("react-loose-forms.validation");

  ...
  {
    label: "Please enter a percentage",
    type: "text",
    validate: v.percent
  },
  ...
var percent = require("react-loose-forms.validation/v/percent");

  ...
  {
    label: "Please enter a percentage",
    type: "text",
    validate: percent
  },
  ...

Functions

blankOr

Return true if the value is blank, otherwise require the validation function you pass in as the frist argument.

For example:

  {
    label: "Enter your email address",
    ...
    validate: v.blankOr(v.email)
  }

currency

date

email

integer

limitInputLength

optional

percent

phone

positiveInteger

required

License

MIT //: # (Don't edit this by hand, edit readme-template.md) //: # (Don't edit this by hand, edit readme-template.md) //: # (Don't edit this by hand, edit readme-template.md) //: # (Don't edit this by hand, edit readme-template.md)

Keywords

FAQs

Package last updated on 11 Feb 2016

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc