opurl

Object-oriented URL utility

npm install opurl
1 downloads in the last week
4 downloads in the last month

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';
npm loves you