Socket
Socket
Sign inDemoInstall

fixemail

Package Overview
Dependencies
1
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

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


Version published
Weekly downloads
10
decreased by-33.33%
Maintainers
1
Created
Weekly downloads
 

Readme

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

FAQs

Last updated on 07 Nov 2021

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