email-obfuscator for Node.js
This module combines some Email obfuscation technics in the browser.
- The @ char is removed and only its index is passed on. It will be reinserted using the expression String.fromCharCode(422*4).
- The address itself will be transmitted as a ROT13 transformed string which will be retransformed by Javascript.
Usage
The Email address "mail@example.com" will result in the following string:
var emailObfuscator = ; var obfuscated = emailObfuscator;// obfuscated = 'znvyrknzcyr.pbz/4' var htmlScript = emailObfuscator;// htmlScript = See below var original = emailObfuscator;// original = 'mail@example.com'
asHtmlScript output which can be included instead of the email address:
Installation
npm install --save email-obfuscator