26 lines
508 B
Markdown
26 lines
508 B
Markdown
|
# compare-urls [![Build Status](https://travis-ci.org/sindresorhus/compare-urls.svg?branch=master)](https://travis-ci.org/sindresorhus/compare-urls)
|
||
|
|
||
|
> Compare URLs by first [normalizing](https://github.com/sindresorhus/normalize-url) them
|
||
|
|
||
|
|
||
|
## Install
|
||
|
|
||
|
```
|
||
|
$ npm install compare-urls
|
||
|
```
|
||
|
|
||
|
|
||
|
## Usage
|
||
|
|
||
|
```js
|
||
|
const compareUrls = require('compare-urls');
|
||
|
|
||
|
compareUrls('HTTP://sindresorhus.com/?b=b&a=a', 'sindresorhus.com/?a=a&b=b');
|
||
|
//=> true
|
||
|
```
|
||
|
|
||
|
|
||
|
## License
|
||
|
|
||
|
MIT © [Sindre Sorhus](https://sindresorhus.com)
|