New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ng2-validators

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng2-validators

An implementation of angular validators for Angular 2

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
43
decreased by-23.21%
Maintainers
1
Weekly downloads
 
Created
Source

ng2-validators Build Status

An implementation of various angular validators for Angular 2.

List of validators

  1. Password
  2. Email

Password validators

The rules are from https://github.com/vt-middleware/passay

The password validators are:

  • repeatCharacterRegexRule
  • whitespaceRule
  • allowedCharacterRule
  • alphabeticalCharacterRule
  • digitCharacterRule
  • lowercaseCharacterRule
  • uppercaseCharacterRule
  • more will come

Email

  • simple (only checks if it looks like a mail)
  • normal (follows the HTML5 rules)

How to use

password: Control = new Control('', Validators.compose([
        PasswordValidators.repeatCharacterRegexRule(4),
        PasswordValidators.whitespaceRule()
    ]));
email: Control = new Control('', EmailValidators.normal());

##Todo

Get the complete changelog here: https://github.com/Nightapes/ng2-validators/releases

Keywords

FAQs

Package last updated on 17 May 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