1.0.0 • Published 5 months ago

google-supported-domains v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
5 months ago

google-supported-domains

npm

google-supported-domains is a Node (JavaScript) module exports all Google supported domains (.google.*), and provides an API to test if any domain is a Google domain.

Installation

$ npm install google-supported-domains

Usage

import domains from 'google-supported-domains'

// Get all Google supported domains as a string array.
domains.all()
// => ['.google.ad', '.google.ae', '.google.al', ...]

// Test if any domain is a Google domain.
domains.test('www.google.com')    // => true
domains.test('www.google.co.jp')  // => true
domains.test('mail.google.com')   // => true
domains.test('www.example.com')   // => false
domains.test('foo.example.net')   // => false

Acknowledgements

License

Licensed under the MIT License.

1.0.0

5 months ago

0.2.1

2 years ago

0.2.0

4 years ago

0.1.1

5 years ago