
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
react-copy-mailto
Advanced tools
A fully customizable React component for copying email from mailto links
A fully customizable React component for copying email from mailto
links.
The one thing we all can agree on that we hate it when the default mail app pops up after clicking on the mailto
links. Most of the time we just want to copy the email address and that's where this module comes into play.
The easiest way to use this library is to install it via yarn or npm
yarn add react-copy-mailto
or
npm install react-copy-mailto
Then just use it in your app:
import React from "react";
import CopyMailTo from "react-copy-mailto";
const YourComponent = () => (
<div>
<CopyMailTo email="email@domain.com" />
</div>
);
You can customize almost every aspect of this component using the below props, out of which email is the only required prop.
Name | Type | Default | Description |
---|---|---|---|
string | none | The email to be copied | |
children | ReactNode | null | Use this if you want to use some custom component inside the anchor tag. |
defaultTooltip | string | "Copy email address" | Text shown in the tooltip when the user hovers over the link. |
copiedTooltip | string | "Copied to clipboard!" | Text shown in the tooltip when the user clicks on the link and the text is copied to clipboard. |
containerStyles | style object | none | The styles to be applied to the container |
tooltipStyles | style object | none | The styles to be applied to the tooltip |
anchorStyles | style object | none | The styles to be applied to the anchor |
yarn
yarn demo:dev
Feel free to open issues and pull requests!
FAQs
A fully customizable React component for copying email from mailto links
The npm package react-copy-mailto receives a total of 5 weekly downloads. As such, react-copy-mailto popularity was classified as not popular.
We found that react-copy-mailto demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.