🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

svelte-obfuscate

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svelte-obfuscate

A Svelte component to obfuscate any contact link.

0.3.0
latest
Source
npm
Version published
Weekly downloads
8
-63.64%
Maintainers
1
Weekly downloads
 
Created
Source

svelte-obfuscate

SvelteObfuscate GitHub issues GitHub forks GitHub stars GitHub license Netlify Status

This package provides a Svelte component to obfuscate any contact link from a website and prevent bots from scraping it.

Usage

Install the NPM package svelte-obfuscate to your project and then add it to your layout:

<script>
import { Obfuscate } from "svelte-obfuscate"
</script>

<Obfuscate email="pedro@craftweg.com">

Props

Any of the following props can be passed to the Svelte component.

PropTypeDefaultDescription
emailstringnullemail address of the intended recipient
headersobjectnullsubject, cc, bcc, body, etc
telephonestringnulltelephone number of the intended recipient
smsstringnullsms number of the intended recipient
facetimestringnullfacetime address of the intended recipient
hrefstringnullObfuscate any other URL type (e.g. WhatsApp)

References

Keywords

svelte

FAQs

Package last updated on 30 Dec 2021

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