Domain matcher
Check if given domain/url matches against domain patterns.
Features
- Only ~3 kB (~1.2 kB gzipped).
- Suitable for browser environments.
- No additional dependencies.
Install
With NPM:
$ npm install domain-matcher
With Yarn:
$ yarn add domain-matcher
Usage
// => true // => false // => false (Because '*.com' matches)