parseKnownHosts
function parseKnownHosts(text: string): KnownHostsEntry[];Defined in: src/profiles/importers/KnownHostsParser.ts:39
Parses OpenSSH known_hosts content into structured entries. Comment and blank lines are skipped.
Lines that cannot be parsed are silently dropped so callers can tolerate hand-edited files.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
text | string | Raw known_hosts file contents. |
Returns
Section titled “Returns”Parsed entries in source order.