Skip to content

nswbmw/is-gmail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

is-gmail

Check if an given email is gmail or GSuit email.

Install

npm i is-gmail --save

Usage

const isGmail = require('is-gmail')

;(async function () {
  console.log(await isGmail('example@gmail.com')) // true
  console.log(await isGmail('example@google.com')) // true
  console.log(await isGmail('example@googlemail.com')) // true
  console.log(await isGmail('example@github.com')) // true

  console.log(await isGmail('example@126.com')) // false
  console.log(await isGmail('example@qq.com')) // false
  console.log(await isGmail('example@example.com')) // false
})()

Test

npm test

License

MIT

About

Check if an given email is google apps email.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published