Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
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
  • Socket score

Version published
Weekly downloads
7
decreased by-36.36%
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

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

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