GT2/Ejectable/node_modules/compare-urls/readme.md

26 lines
508 B
Markdown
Raw Normal View History

2021-08-16 00:14:59 +00:00
# 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)