Parse an url. Made for stattic tool.
Example of use:
//Import
var ParseUrl = require('stattic-parseurl');
//Check
var url = ParseUrl('this/is/a/link.php?id=2&value=Hello#GO');
/* Returns:
{ path: 'this/is/a/link.php',
file: 'link.php',
ext: 'php',
query: { id: '2', value: 'Hello' },
hashtag: 'GO' }
*/