urlutils

0.0.3 • Public • Published

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

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

References

WHATWG URL Living Standard http://url.spec.whatwg.org/

MDN URL Documentation https://developer.mozilla.org/en-US/docs/Web/API/URL

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    587
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    587
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i urlutils

Weekly Downloads

587

Version

0.0.3

License

ISC

Last publish

Collaborators

  • seb