Awesome
compare-urls
Compare URLs by first normalizing them
Install
npm install compare-urls
Usage
import compareUrls from 'compare-urls';
compareUrls('HTTPS://sindresorhus.com/?b=b&a=a', 'sindresorhus.com/?a=a&b=b');
//=> true
Compare URLs by first normalizing them
npm install compare-urls
import compareUrls from 'compare-urls';
compareUrls('HTTPS://sindresorhus.com/?b=b&a=a', 'sindresorhus.com/?a=a&b=b');
//=> true