url-equal

0.1.2-1 • Public • Published

url-equal

Check if URLs are functionally equal (allowing for any order of the query string).

Installation

npm install url-equal

Usage

const urlEqual = require('url-equal')
 
console.log(urlEqual('/foo', '/bar')) // => false
console.log(
  urlEqual(
    'http://foo.com/?user=foo&pass=bar',
    'http://foo.com/?pass=bar&user=foo'
  )
) // => true

Readme

Keywords

none

Package Sidebar

Install

npm i url-equal

Weekly Downloads

539

Version

0.1.2-1

License

ISC

Last publish

Collaborators

  • mmalecki