domain-match
1.0.0 • Public • Published domain-match
Check if a given url matches against simple domain name patterns.
Installation
Install via npm
$ npm install domain-match
Description
Use this function to test a URL matches a domain name pattern.
The domain name patterns can optionally followed by path prefix.
Usage
var domainMatch = require('domain-match');
var matched = domainMatch('*.abc.com/prefix/path', 'http://www.abc.com/prefix/path/filename.ext');
// matched == true
License
MIT
Versions
Current Tags
- VersionDownloads (Last 7 Days)
- 1.0.0
94
Version History
- VersionDownloads (Last 7 Days)
- 1.0.0
94
Package Sidebar
Install
Weekly Downloads