url-compare
v0.1.3
Published
Compare URIs semantically
Downloads
562
Readme
url-compare
Url comparisons for humans
Install
Using npm
npm install url-compare
Usage
var compare = require('url-compare');
compare('http://example.com/route', 'http://example.com:80/route'); // true
compare('http://example.com:123?a=1&b=2', 'http://example.com:123?b=2&a=1'); // true
compare('https://example.com', 'https://example.com:443'); // true
License
MIT