Sindbad~EG File Manager

Current Path : /proc/thread-self/root/lib/nodejs/url-parse-lax/
Upload File :
Current File : //proc/thread-self/root/lib/nodejs/url-parse-lax/index.js

'use strict';
var url = require('url');
var prependHttp = require('prepend-http');

module.exports = function (x) {
	var withProtocol = prependHttp(x);
	var parsed = url.parse(withProtocol);

	if (withProtocol !== x) {
		parsed.protocol = null;
	}

	return parsed;
};

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists