Skip to content

Detects all emails from a string and masks them partially

Notifications You must be signed in to change notification settings

superflows-dev/react-email-mask

Repository files navigation

react-email-mask

A react module that masks email addresses from any input string

NPM JavaScript Style Guide

Install

npm install --save react-email-mask

Usage

import React from 'react'

import { maskEmail } from 'react-email-mask'
import 'react-email-mask/dist/index.css'

const App = () => {

  console.log(maskEmail('my email address is hello@abc.com, is your email address byebye@defgh.com?'));

  return <div>Hello Email Mask Helper</div>
}

export default App

Output

my email address is h***o@a*c.com, is your email address b****e@d***h.com?

License

MIT © superflows-dev

About

Detects all emails from a string and masks them partially

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published