Object-oriented URL utility
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.gitignore
.npmignore
LICENSE
README.md
package.json

README.md

opurl

URL utility. Work with the path portion of URLs. Expose the same API as opath;

Installation

npm install opurl

Example

var Url = require('opurl');

var url = new Url('http://example.com/foo/bar?q=search#hash').dirname();
url.toString() === 'http://example.com/foo?q=search#hash';