📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP
Socket
Sign inDemoInstall
Socket

fixemail

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fixemail

Package for fix address of emails, type fix email joao@gmail .com to joao@gmail.com

0.0.12
latest
Source
npm
Version published
Weekly downloads
8
Maintainers
1
Weekly downloads
 
Created
Source

FixEmail

Install

You can install with npm:

  npm install fixemail

You can install with yarn:

  yarn add fixemail

FixEmail Syntax

You can fix error in email syntax by user.

You can use:

const fixEmail = require('fixemail');

fixEmail('email@gmail.com')
// > { email: 'email@gmail.com', valid: true }

fixEmail('emai l@gmail .com')
// > { email: 'email@gmail.com', valid: true }

fixEmail('emai lgmail .com')
// > { email: 'emailgmail.com', valid: false }

import fixEmail from 'fixemail';

fixEmail('email@gmail.com')
// > { email: 'email@gmail.com', valid: true }

fixEmail('emai l@gmail .com')
// > { email: 'email@gmail.com', valid: true }

fixEmail('emai lgmail .com')
// > { email: 'emailgmail.com', valid: false }

Validate Email

You can validate your email with this package.

Used package email-validator

You can use:

const { validate } = require('fixemail');

validate('email@gmail.com')
// > true

validate('emai l@gmail .com')
// > false

import { validate } from 'fixemail';

validate('email@gmail.com')
// > true

validate('emai l@gmail .com')
// > false

Todo Implement

  • Remove alias email, after +
  • Remove accents
  • Verify is domain is valid
  • Remove temp emails

Keywords

fix-email

FAQs

Package last updated on 07 Nov 2021

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