New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

wnvalidators

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

wnvalidators

Simple service for your formgroup and formcontrol.

latest
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

Wnvalidators

Simple service for your formgroup and formcontrol.

Table of Contents

  • Installation
  • Usage
  • Available Validators

Installation

$ npm i wninputcontrol

Usage

To use Wnvalidators in your Angular project, import the Validators contained in Wnvalidators into your component.ts and add it to your formControl. For example, to use the CheckBoxValidator Validator:

import { CheckBoxValidator } from 'wninputcontrol';
// ...
    this.formgroup.get('formControlName')?.setValidators(CheckBoxValidator)
// ...

If don't have style or anything for invalid form, you can console.log to view errors.

Available Validators

1. CheckBoxValidator

Validator to check the checkbox is selected or not.

2. ValidatorsCitizenId

Validator to check the citizen ID number with 13 digits and some calculate the citizen ID number.

3. ValidatorsPassport

Validator to check passport number using 9 characters.

4. ValidatorsTaxId

Validator to check the tax number with 10 or 13 digits.

Keywords

wn

FAQs

Package last updated on 25 Oct 2023

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