compare-urls

Compare URLs by first normalizing them

Usage no npm install needed!

<script type="module">
  import compareUrls from 'https://cdn.skypack.dev/compare-urls';
</script>

README

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