Node Packaged Masterfully
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

validity-mailto-link

0.0.4 • Public • Published

validity-mailto-link

Validate the current property is a mailto link

E.g it is in the format mailto:123@example.com

Installation

npm install validity-mailto-link --save

Usage

Below is a simple example for usage with schemata and save:

var validity = require('validity')
  , schemata = require('schemata')
  , save = require('save')
  , collection = save('author')
  , validateMailtoLink = require('validity-mailto-link')
 
var schema = schemata(
    { type:
      { type: String
      }
    , email:
      { type: String
      , validators: { all: [ validateMailtoLink() ] }
      }
    })
 

Credits

Ben Parnell

Keywords

none

install

npm i validity-mailto-link

Downloadsweekly downloads

12

version

0.0.4

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability