MauricioRobayo / react-obfuscate-email

πŸ“§ React component to obfuscate email links

Home Page:https://mauriciorobayo.github.io/react-obfuscate-email/?nav=false

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React Obfuscate Email

React Obfuscate Email CI codecov CodeFactor bundlephobia

πŸ“§πŸš«πŸ€– A lightweight email obfuscator React component.

Until you hover or focus on the link, the @ symbol is stripped out and rendered using ::after css pseudo-element, and the href attribute value is replaced with #.

  • No dependencies
  • Tree-shakeable

Installation

npm install --save react-obfuscate-email

Usage

import { Email } from "react-obfuscate-email";

export default function SomeComponent() {
  return <Email email="test@example.com">πŸ“§ Email me!</Email>;
}

Read the documentation πŸ“˜.

TypeScript

The component is written in TypeScript and type definitions are included.

Contributing

All type of contributions are welcome!

Show your support

Give a ⭐️ if you like this project!

LICENSE

MIT

About

πŸ“§ React component to obfuscate email links

https://mauriciorobayo.github.io/react-obfuscate-email/?nav=false

License:MIT License


Languages

Language:TypeScript 68.0%Language:MDX 24.2%Language:JavaScript 7.8%