1.0.3 • Published 6 years ago

is-mailto v1.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

is-mailto

Simple function to test if an url is a valid "mailto:".

Install:

$ npm i is-mailto
$ yarn add is-mailto

Example:

import isMailTo from 'is-mailto';

const string = 'mailto:test@test.com';
console.log(isMailTo(string)) // true

const string = 'test@test';
console.log(isMailTo(string)) // false because it's not an valid email and not contain "mailto:"
1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago