Skip to content
This repository was archived by the owner on Jul 4, 2020. It is now read-only.

Repository files navigation

url-path

Adaptation of the WHATWG URL API for absolute paths.

Works in Node 8 and browsers which support the URL API (or have a polyfill).

Only the href property is supported.

const url = new URLPath('/foo/bar')
url.searchParams.set('query', 'something')
return url.href

Installation

Requires Node 8+.

npm install url-path

Contribute

Pull requests welcome!

Support

If you are having issues, please let me know.

License

The project is licensed under the MIT license.

About

Adaptation of the WHATWG URL API for absolute paths

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages