New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

mailcheck-vue

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mailcheck-vue

vuejs wrapper for mailcheck

  • 1.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
18
increased by5.88%
Maintainers
1
Weekly downloads
 
Created
Source

mailcheck-vue

npm npm

Installation

npm install mailcheck-vue --save

Usage

  • register the component

    window.Vue = require('vue')
    
    Vue.component('MailCheck', require('mailcheck-vue'))
    
  • now use it like

    <mail-check
        model-name="email"
        :data="email"
        :domains="['gmail.com', 'aol.com']"
        :topLevelDomains="['com', 'net', 'org']"
        :secondLevelDomains="['hotmail']"
        :distanceFunction="someFunction">
    
        <span>Did you Mean</span>
    </mail-check>
    
    proprequiredtypedefaultdescription
    modelName:white_check_mark:stringthe v-model key we should update on click
    data:white_check_mark:stringthe v-model value we want to check
    domains:x:arrayMailcheck.domainsmailcheck
    topLevelDomains:x:arrayMailcheck.topLevelDomainsmailcheck
    secondLevelDomains:x:arrayMailcheck.secondLevelDomainsmailcheck
    distanceFunction:x:functionMailcheck.sift4Distancemailcheck

# Why we need both data & modelName ?
to update the parent v-model without the need to use an EventBus, if someone have a better idea am all :ear:.


  • to style the result, use mail-check ex.
    .mail-check {
        cursor: pointer;
        color: red;
    }
    

Keywords

FAQs

Package last updated on 17 Sep 2018

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc