url-path

0.2.2 • Public • Published

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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.2
    33
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.2.2
    33
  • 0.2.1
    0
  • 0.2.0
    0
  • 0.1.1
    0
  • 0.1.0
    0

Package Sidebar

Install

npm i url-path

Weekly Downloads

33

Version

0.2.2

License

MIT

Unpacked Size

9.47 kB

Total Files

7

Last publish

Collaborators

  • paulmelnikow