For a library for parsing command output into structured data, the strongest matches are kellyjonbrazil/jc (jc is a Python library and CLI that converts), reviewdog/reviewdog (Reviewdog is a CLI tool that parses linter output) and haya14busa/reviewdog (Reviewdog is a CI review bot that parses linter). scrooloose/syntastic and zserge/jsmn round out the shortlist. Each is ranked by relevance to your query, popularity and recent activity.
Open-source tools and libraries that transform raw terminal command output into structured data formats.
jc is a tool that transforms plain-text results from command-line utilities, system tools, log formats, and text tables into structured JSON data. It functions as a structured data transformer capable of converting various file formats, including CSV, INI, XML, and YAML, into JSON representations for programmatic use. The project includes a collection of specific parsers for Unix commands and system tools such as df, blkid, and various package managers. It also features specialized converters for web server logs, Common Log Format, and Common Event Format strings. The tool covers broad capab
jc is a Python library (and CLI) that converts command-line output into structured JSON, supporting predefined parsers for hundreds of commands and multiple input formats, which directly addresses the need for parsing command output into structured data.
Reviewdog is a linter result posting tool and a diff-aware static analysis filter. It parses the output of various linters and posts findings as comments on pull requests within code hosting platforms. It also functions as a quality gate for CI pipelines, failing builds when findings exceed specified severity thresholds. The project distinguishes itself by isolating static analysis issues to only those introduced within the current git code diff, preventing the reporting of legacy errors. It unifies tool findings by processing industry-standard SARIF and XML diagnostic formats alongside custo
Reviewdog is a CLI tool that parses linter output for code review automation, not a reusable programming library for parsing arbitrary command-line output into structured data — you would embed it to automate reviews, not to build your own parser.
Reviewdog is an automated review bot and CI code review orchestrator that converts the output of static analysis tools into automated pull request comments. It functions as a linter output parser and static analysis commenter, transforming unstructured logs from compilers or linters into structured diagnostics. The project distinguishes itself by using pattern-based output parsing and a platform-agnostic plugin architecture to unify multi-language linting workflows. It employs diff-based result filtering to isolate issues introduced in a specific commit and provides the ability to post action
Reviewdog is a CI review bot that parses linter output into structured diagnostics, but it is an application focused on code review integration rather than a general-purpose library for parsing arbitrary command-line output into JSON or tables.
Syntastic is a Vim syntax checking plugin that integrates external command-line analysis tools to detect and highlight code errors. It functions as a system for mapping specific syntax checkers to filetypes and validating code structure and correctness within the editor. The project acts as an external linter aggregator, combining error results from multiple checkers into a single unified list for the current file. It provides visualization tools to pinpoint issues using signs, highlighting, and statusline flags. The plugin supports real-time syntax validation and on-demand checking, often t
Syntastic is a Vim plugin that aggregates linter output, not a standalone library you can import to parse command-line tool text into JSON or tables—it is tightly coupled to Vim's editor environment rather than a general-purpose parsing library.
jsmn is a lightweight JSON parser library written in C. It provides zero-copy tokenization and incremental parsing designed for use in embedded systems and memory-constrained environments. The library identifies structural JSON elements by providing offsets into the original string rather than allocating new memory for data. It uses a single-pass scanning method and requires static-buffer allocation, meaning the caller provides the memory for tokens to avoid dynamic allocation during the parsing process. The parser supports incremental streaming, allowing it to process JSON data in chunks fr
jsmn is a lightweight JSON parser for embedded systems, but it only handles JSON input and is not designed to parse arbitrary command-line tool output into structured formats, so it's a building block rather than the standalone command-line output parsing library this search targets.
lnav is a terminal-based log viewer and analyzer designed for aggregating, filtering, and analyzing multiple log files in a single chronological view. It functions as a console application that can replace the system pager, providing syntax highlighting and document navigation for system or application logs. The project distinguishes itself by mapping unstructured log data to virtual SQLite tables, enabling the use of SQL and PRQL for structured data analysis, aggregations, and relational queries. It further differentiates its capability set through native integration for retrieving and taili
lnav is a terminal log viewer that maps unstructured log data to SQL tables, but it is a standalone application, not a reusable library for parsing arbitrary command-line tool outputs into structured data like JSON.
ArduinoJson is a C++ library for parsing and manipulating JSON data and MessagePack binary streams on microcontrollers with limited memory and processing power. It provides the core primitives necessary for embedded data serialization and parsing, enabling devices to exchange structured data over serial or network interfaces. The library is distinguished by its focus on microcontroller memory management, employing strategies such as pool-based allocation, string deduplication, and non-owning string views to minimize RAM usage. It further optimizes for constrained environments by allowing cons
This is a JSON and MessagePack parsing library for microcontrollers, not a library for parsing general command-line tool output into structured data; it lacks support for regex extraction, multiple text formats, and predefined parsers for common commands.