File size: 408 Bytes
979bf48
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "formatHostname", {
    enumerable: true,
    get: function() {
        return formatHostname;
    }
});
const _isipv6 = require("./is-ipv6");
function formatHostname(hostname) {
    return (0, _isipv6.isIPv6)(hostname) ? `[${hostname}]` : hostname;
}

//# sourceMappingURL=format-hostname.js.map