Today I am releasing the first version of arobase, a little javascript module that tries to obfuscate email addresses on a web page from bots but keep it readable for human.

I originally wrote this simple module for this website but as it is pretty modular I thought it can be packaged and used by others. It is less than 2kb minified and does not require any external dependency.

Arobase takes all the element with the arobase class in a page transform characters into HTML numbers and insert random padding (non printable characters) between letters. When clicked it also redirect to a mailto: location.

By default the domain is retrieved from the current location but this can be configured easily. See the full but yet simple documentation for more details.