Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

compare-urls

sindresorhus150.4kMIT4.1.0TypeScript support: included

Compare URLs by first normalizing them

compare, equal, same, url, uri, normalize

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