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

disposable-email-blocker-vue-2

v1.0.0

Published

Detect and Block if new account registrations are using disposable email services with vue 2.

Downloads

2

Readme

🛡️ Vue 2 Disposable email blocker

Detect and Block if new account registrations are using disposable email services.

Vue 2 Demo

The Disposable email blocker provide :

  • 🛡️ Protects all HTML forms.
  • 🛡️ Detects invalid email addresses and domains
  • 🛡️ Blocks disposable email services
  • 🛡️ Blocks webmail email services
  • 🛡️ Custom error messages
  • 🛡️ Disposable data daily updates to stay ahead of fake users

How to use

Install

NPM version NPM bundle size npm download

$ npm install disposable-email-blocker-vue-2 --save
# or
$ yarn add disposable-email-blocker-vue-2

Usage

import Blocker from 'disposable-email-blocker-vue-2';

Vue.use(Blocker);

Options

The Blocker parameter.

Simple options

const defaults = {
    apiUrl: 'string',
    data: 'TombaStatusResponse[]',
    disposable: {
        message: 'string',
    },
    webmail: {
        message: 'string',
        block: false,
    },
    emailError: {
        className: 'string',
        style: `string`,
    },
};
Vue.use(Blocker, defaults);
  • apiUrl API URL.
  • data Data structure.
  • disposable.message disposable error message.
  • webmail.message webmail error message.
  • webmail.block block webmail emails.
  • emailError.className HTML tag class .
  • emailError.style css style.

Custom disposable message

To disposable message:

const defaults = {
    disposable: {
        message:
            'Abuses, strongly encourage you to stop using disposable email',
    },
};
Vue.use(Blocker, defaults);

Custom webmail message

To webmail message:

const defaults = {
    webmail: {
        message:
            'Warning, You can create an account with this email address, but we strongly encourage you to use a professional email address',
    },
};
Vue.use(Blocker, defaults);

Custom API URL

const defaults = {
    apiUrl: 'string',
};
Vue.use(Blocker, defaults);

Custom DATA

This will stop API call

const defaults = {
    data: [
        {
            domain: 'coronafleet.com',
            webmail: true,
            disposable: false,
        },
    ],
};
Vue.use(Blocker, defaults);

Block webmail emails

const defaults = {
    webmail: {
        block: true,
    },
};
Vue.use(Blocker, defaults);

Instance property

To access the API functions, call the $blocker anywhere in your components.

this.$blocker;

Event handling

use the on() API method. Available Event name done the Content is revealed on onInput

his.$blocker.on('done', (e) => {
    // place your code here
});

Free Plugins / Forum / E-Commerce / CMS

| Platform | URL | Status | | ---------- | ------------------------------------------------------------------------------------------------------ | ------ | | wordpress | wordpress-disposable-email-blocker | ✅ | | MyBB | mybb-disposable-email-blocker | ✅ | | LiteCart | litecart-disposable-email-blocker | ✅ | | Cloudflare | cloudflare-disposable-email-blocker | ✅ | | Vue 2 | disposable-email-blocker-vue-2 | ✅ | | Joomla | | 🚧 | | Drupal | | 🚧 |

License

GitHub license