SSH Config Parser and Stringifier
JSON →The `ssh-config` library offers robust parsing and stringification capabilities for SSH configuration files, typically located at `~/.ssh/config`. As of its current stable version, 5.1.0, it enables developers to programmatically read, modify, and write SSH configurations while diligently preserving original formatting, comments, and whitespace. The project maintains an active release cadence, frequently addressing bugs and introducing features, such as Deno support in v5.1.0 and continuous improvements to TypeScript typings. Its primary differentiator lies in its ability to parse an SSH config into an Abstract Syntax Tree (AST)-like structure for easy manipulation and then reliably serialize it back into a valid SSH config string, ensuring changes are applied correctly without data loss. Additionally, it provides convenient helper methods like `compute` to derive the effective configuration for a specific host, and `find` for targeted section modification, offering granular control over SSH settings.
Traffic · last 30 days ↓80% vs prev 7d
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany · 🇯🇵 Japan · 🇬🇧 United Kingdom