urlutils

The `window.URL` constructor for Node

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
urlutils
800.0.310 years ago10 years agoMinified + gzip package size for urlutils in KB

Readme

URLUtils
Modern browsers all have a window.URL constructor that implements the URLUtils interface. It allows parsing and manipulating of URLs. This package offers a shim for Node to implement similar behaviour. It's based on the popular URIjs.

Installation

Command line: npm install urlutils

Usage

```js var URL = require('urlutils'); new URL('http://example.com/foobar').pathname; // "/foobar" ```

References

WHATWG URL Living Standard MDN URL Documentation