https://github.com/vweevers/is-google-domain
Tells you if a top level domain is a Google domain
https://github.com/vweevers/is-google-domain
dns domain google nodejs
Last synced: about 2 months ago
JSON representation
Tells you if a top level domain is a Google domain
- Host: GitHub
- URL: https://github.com/vweevers/is-google-domain
- Owner: vweevers
- License: mit
- Created: 2016-06-06T15:35:48.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2020-05-25T04:10:52.000Z (about 6 years ago)
- Last Synced: 2025-10-27T04:39:04.498Z (8 months ago)
- Topics: dns, domain, google, nodejs
- Language: JavaScript
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# is-google-domain
**Tells you if a top level domain is a Google domain.**
[](https://www.npmjs.org/package/is-google-domain) [](http://travis-ci.org/vweevers/is-google-domain) [](https://ci.appveyor.com/project/vweevers/is-google-domain) [](https://david-dm.org/vweevers/is-google-domain)
## `isGoogle(domain, subdomains = true)`
```js
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](https://npmjs.org) do:
```
npm install is-google-domain
```
## license
[MIT](http://opensource.org/licenses/MIT) © Vincent Weevers