obfuscate
v0.0.11
Published
An intelligent function to obfuscate any contact link
Downloads
18
Maintainers
Readme
obfuscate
An intelligent function to obfuscate any contact link
Why
The world needs obfuscated links that display the link in a friendly way.
Installation
npm install --save obfuscate
Usage
var obfuscate = require('obfuscate')
...
return html`
<p>
Email: ${obfuscate({
email:'[email protected]',
subject:'Question from the website',
cc:'[email protected]'
})}
</p>
`
Output
Robot Interaction
<p>
Email: <a href="obfuscated">looc.notsoc@olleh</a>
</p>
Human Interaction
<p>
Email: <a href="mailto:[email protected]&subject=Question%20from%20the%20website&[email protected]">[email protected]</a>
</p>
Options
Key | Value ----------|----------- email | email address of the intended recipient cc | email address to carbon copy email to bcc | email address to blind carbon copy to subject | subject of email body | body text of email