🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

vue-syntax

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-syntax

A simple Vue wrapper on email-validator, providing an easy way to validate email syntax

1.0.3
latest
Source
npm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

Vue Syntax

A simple Vue wrapper on email-validator, providing an easy way to validate email syntax

Installing

Using npm :

npm install vue-syntax

Using yarn :

yarn add vue-syntax

Setup

Import ES6 module style :

import Vue from 'vue'
import EmailValidator from 'vue-syntax'

Or CommonJS style :

const Vue = require('vue')
  , EmailValidator = require('vue-syntax')

Or AMD style :

define(['vue', 'vue-syntax'], function(Vue, EmailValidator) {})

Or even <script> style :

<script src="http://path/to/vue.js"></script>
<script src="http://path/to/vue-syntax/index.js"></script>

Then provide EmailValidator to the use() function of Vue (not needed for <script> style) :

Vue.use(StandardError)

Useage

You can now use $EmailValidator.validate() in your Vue instances and components

new Vue({
  created() {
    this.$EmailValidator.validate(emailAdress) // true / false
  }
})

Dependencies

  • email-validator - Email syntax validator npm module, fast and pretty robust

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Keywords

simple

FAQs

Package last updated on 01 Jun 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