Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

is-google-domain

vweevers15kMIT1.0.0

Tells you if a top level domain is a Google domain

google, tld

readme

is-google-domain

Tells you if a top level domain is a Google domain.

npm status Travis build status AppVeyor build status Dependency status

isGoogle(domain, subdomains = true)

const isGoogle = require('is-google-domain')

isGoogle('google.co.jp') === true;
isGoogle('mail.google.com') === true;
isGoogle('mail.google.com', false) === false;

install

With npm do:

npm install is-google-domain

license

MIT © Vincent Weevers