Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Object-oriented URL utility
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

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';
Something went wrong with that request. Please try again.