1.2.2 • Published 6 years ago

compare-url-hierarchy v1.2.2

Weekly downloads
9
License
MIT
Repository
github
Last release
6 years ago

compare-url-hierarchy

Compare URL hierarchy.

Build Status

Installation

npm i compare-url-hierarchy

Usage

import { compare } from 'compare-url-hierarchy'
compare('/', '/foo') // => 0
compare('/foo/bar', '/') // => -1
compare('/', 'https://example.org/foo/bar/baz') // =>  2

LICENSE

MIT

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.0

7 years ago