UNPKG

@verdaccio/node-api

Version:
31 lines (30 loc) 1.1 kB
export declare const DEFAULT_PORT = "4873"; export declare const DEFAULT_PROTOCOL = "http"; export declare const DEFAULT_DOMAIN = "localhost"; /** * Parse an internet address * Allow: - https:localhost:1234 - protocol + host + port - localhost:1234 - host + port - 1234 - port - http::1234 - protocol + port - https://localhost:443/ - full url + https - http://[::1]:443/ - ipv6 - unix:/tmp/http.sock - unix sockets - https://unix:/tmp/http.sock - unix sockets (https) * @param {*} urlAddress the internet address definition * @return {Object|Null} literal object that represent the address parsed */ export declare function parseAddress(urlAddress: any): any; /** * Retrieve all addresses defined in the config file. * Verdaccio is able to listen multiple ports * @param {String} argListen * @param {String} configListen * eg: * listen: - localhost:5555 - localhost:5557 @return {Array} */ export declare function getListListenAddresses(argListen: string | void, configListen: any): any;