Skip to content

Simple mail redaction by randomly splitting and wrapping mail addresses

Notifications You must be signed in to change notification settings

cvgellhorn/mail-redactor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mail-redactor

Fool all the evil mail harvesting bots by randomly splitting and wrapping mail addresses

Installation

npm install mail-redactor

Usage

const mailRedactor = require('mail-redactor');
console.log(mailRedactor('contact@website.com'));

Output

co
<span>n</span>
<span>t</span>
<span>a</span>
c
<span>t</span>
<span>@</span>
we
<span>b</span>
s
<span>i</span>
te
<span>.</span>
<span>c</span>
o
<span>m</span>