A fast url parser for nodejs based on pattern from Javascript: The Good Parts
Example:
var parser = require('parse_url');
var url = 'www.google.com/hello?q#npm';
var result = parser(url);
https://www.omniref.com/js/npm/parse_url/0.1.1?d=1411675&n=0#