Socket
Socket
Sign inDemoInstall

text-mask-addons

Package Overview
Dependencies
0
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    text-mask-addons

Addons for Text Mask https://github.com/msafi/text-mask


Version published
Maintainers
1
Install size
26.4 kB
Created

Readme

Source

Text Mask Addons

Text Mask addons are accessories for Text Mask. Currently, the only available addon is createMmddyyyyValidator.js

Installation

npm i text-mask-addons --save-dev

Validators

createMmddyyyyValidator

createMmddyyyyValidator returns a function that ensures the user is typing a valid mm/dd/yyyy date.

Usage
import createMmddyyyyValidator from 'text-mask-addons/dist/createMmddyyyyValidator'

var mmddyyyyValidator = createMmddyyyyValidator({
  minimumDate: '01/01/1900',
  maximumDate: '12/31/2016'
})

// ...then pass `mmddyyyyValidator` to Text Mask component

Keywords

FAQs

Last updated on 05 Jun 2016

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc