Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

obfuscate

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

obfuscate

An intelligent function to obfuscate any contact link

  • 0.0.11
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
decreased by-56.25%
Maintainers
1
Weekly downloads
 
Created
Source

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:'hello@coston.cool', 
            subject:'Question from the website', 
            cc:'friend@coston.cool'
        })}
    </p>
  `

Output

Robot Interaction
<p>
  Email: <a href="obfuscated">looc.notsoc@olleh</a>
</p>
Human Interaction
<p>
  Email: <a href="mailto:hello@coston.cool&subject=Question%20from%20the%20website&cc=friend@coston.cool">hello@coston.cool</a>
</p>

Options

KeyValue
emailemail address of the intended recipient
ccemail address to carbon copy email to
bccemail address to blind carbon copy to
subjectsubject of email
bodybody text of email

Keywords

FAQs

Package last updated on 16 Mar 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc