is-gmail

1.0.0 • Public • Published

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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.036latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.036
0.1.11
0.1.01

Package Sidebar

Install

npm i is-gmail

Weekly Downloads

38

Version

1.0.0

License

MIT

Unpacked Size

2.32 kB

Total Files

4

Last publish

Collaborators

  • nswbmw