![38% of CISOs Fear They’re Not Moving Fast Enough on AI](https://cdn.sanity.io/images/cgdhsj6q/production/faa0bc28df98f791e11263f8239b34207f84b86f-1024x1024.webp?w=400&fit=max&auto=format)
Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
@south-paw/react-obfuscate-ts
Advanced tools
A React component to obfuscate contact links and text
🕵️ A React component to obfuscate contact links and text
email
, tel
, sms
, href
and any other string of text as a child.aria-label
for screen readers to identify the obfuscated element.as
prop for use with other Link components (such as your own UI libraries link component).The component reverses the content in the DOM for you and uses CSS to re-reverse the content so it appears normally to the user, it also replaces the content of the link's href
attribute. When a user hovers, clicks or focuses the element, it is considered "interacted" and has its content un-reversed and the correct href
attribute applied. This ideally makes the link useless for a bot/spammer but ensures it remains user friendly when viewed normally.
import { Obfuscate } from '@south-paw/react-obfuscate-ts';
// use the component's children to create the link and display
<Obfuscate email>hello@example.com</Obfuscate>;
// or specify the email address for the link with custom children
<Obfuscate email="hello@example.com">Email me!</Obfuscate>;
I was inspired to create this package after using the coston/react-obfuscate package for two years. After switching the majority of my own code bases to TypeScript, I was disappointed to see there was no @types
package for this original version and that it wasn't reliably obfuscating it's content in some of the usages I had. I decided that I'd do a variant of that component with a new API, a few minor bug fixes and one that included types as well.
If you find any, please report them here so they can be squashed.
MIT, see the LICENSE file.
FAQs
A React component to obfuscate contact links and text
The npm package @south-paw/react-obfuscate-ts receives a total of 201 weekly downloads. As such, @south-paw/react-obfuscate-ts popularity was classified as not popular.
We found that @south-paw/react-obfuscate-ts 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.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.