url-glob
v1.0.3
Published
Javascript library for url globing. Easier than regex string matching patterns for urls.
Downloads
41
Readme
url-glob
Javascript library for url globing. Easier than regex string matching patterns for urls.
Installation
npm install url-glob
How to use :
var UrlGlob = require('url-glob');
var urlGlob = new UrlGlob('**');
urlGlob.match('http://google.com.eg'); // take a url and returns true or false
Matching symbols :
- '*' : maching zero or more characters
- '**' : matching zero or more url part (e.g /example/)