npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@2alheure/vue-safe-mail

v1.0.3

Published

A Vue.js component to safely print your email on your website

Downloads

17

Readme

Vue.js Safe Mail

A Vue.js component to safely print your email on your website.
This component is compatible with Vue 3.

Description

We all know this kind of situation: you have a landing page, allowing people to send you a contact message at the bottom of the page.
To do so, you made a nice form, and for accessibility purpose, you also add a link with your email address next to it.

And then it begins...

Dozens, if not hundreds of mails! You're happy, you're telling youself "It's the begining of my fortune! I have plenty of people wanting to chat with me! I'm so happy".
But it turns out that on 100 emails you've got, 99 are from spam bots which read your email address and sold it.

Do not just delete it

Stop undergoing this!
There are plenty of tips allowing you to display an email address relatively safely.

The main point is, not to allow bots to get your email address as is. So people add scripts that encrypt their addresses. But bots do read the HTML generated.
So if you simply write <a htref="mailto:{encryptedmail}">[email protected]</a>... It's not good enough.

This component

This components hides your email address in both the <a> tag AND its href.
Just give it a try, it'll change your life... Or at least your box's one.^^'

Usage

Run npm install @2alheure/vue-safe-mail. Import it. Use it.
It's as simple as that! =D

<SafeMail :email="email" :title="title" />

<script>
import SafeMail from "@2alheure/vue-safe-mail";

export default {
  components: {
    SafeMail
  },
  data() {
    return {
      email: "[email protected]",
      title: "Click here to send me a nice message which is not spam!"
    }
  }
};
</script>

It renders a <a> tag with a href attribute pointing to the given email... but protected against bots harvest. =P

Props

| Name | Type | Default value | Description | | :---- | :----: | :-----------: | ------------------------------------------------- | | email | String | null | The email. | | title | String | null | The title attribute of the generated <a> tag. |