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

cdl-validateemail

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cdl-validateemail

This is a simple packege which is developed using javascript regular expression.

  • 0.0.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Email Validation

This is a simple packege which is developed using javascript regular expression.

Installation instruction

npm install cdl-validateemail --save

Instruction to use the package

How to use?

Please follow below instruction to implement local storage in your angular application.

//in module
import { ValidateemailModule } from 'cdl-validateemail'; 

imports: [
    ValidateemailModule
]

// In your component ts file

import { ValidateemailService } from 'cdl-validateemail';

First way to utilize service

// Extend service to utilize its functions

export class AppComponent extends ValidateemailService {

    constructor() {
        super();
    }

    ngOnInit() {

        //Return success or error message
        this.isValidEmail('test@gmail.com');
    }
}

Second way to utilize service

// Initilize service to constructor

export class AppComponent {

    constructor(private validateemailService: ValidateemailService) {
        //TODO:
    }

    ngOnInit() {

        //Return success or error message
        this.validateemailService.isValidEmail('test@gmail.com');
    }
}

Keywords

FAQs

Package last updated on 20 Sep 2019

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