UNPKG

netconf-client

Version:
19 lines 571 B
/** * Connection string object */ export interface ConnArgs extends Record<string, string | number | undefined> { host: string; port?: number; user?: string; pass?: string; } /** * Parse user:pass@host:port connection string * * @param conn - Connection string in the format of user:pass@host:port where only host is required. If some of the * parameters are not provided, they will be undefined. * * @returns Connection string object */ export declare function parseConnStr(conn: string): ConnArgs; //# sourceMappingURL=parse-conn-str.d.ts.map