arudradey's picture
download
raw
366 Bytes
"use strict";
function parseHost(urlObj, options)
{
// TWEAK :: condition only for speed optimization
if (options.ignore_www)
{
var host = urlObj.host.full;
if (host)
{
var stripped = host;
if (host.indexOf("www.") === 0)
{
stripped = host.substr(4);
}
urlObj.host.stripped = stripped;
}
}
}
module.exports = parseHost;

Xet Storage Details

Size:
366 Bytes
·
Xet hash:
244cdacfdfc913b4688288738fafbe63f78dd0268e04133c9db8c215272c7e60

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.