pick Aryan Bhosale
Use this command to install pick:
winget install --id=aryanbhosale.pick -e pick: A versatile command-line tool designed to extract, filter, and transform data from various formats such as JSON, YAML, TOML, .env, HTTP headers, logfmt, CSV, and plain text. It serves as a unified solution for tasks traditionally handled by multiple tools like jq, yq, grep, awk, and cut.
Key Features:
- Multi-format support: Seamlessly work with JSON objects, arrays, nested structures, YAML configurations, TOML files, .env variables, HTTP headers, structured logs, CSV/TSV tables, and plain text.
- Powerful selectors: Use a flexible syntax to extract values from top-level keys, nested structures, array indices, slices, and more. Supports regex matching and boolean logic for complex filtering.
- Pipes and filters: Chain operations using the pipe operator to filter arrays, pluck fields, apply transformations, and convert output formats on-the-fly.
- Mutations: Perform immutable tree operations with
set()to add or update keys, anddel()to remove keys from documents. - JSONL streaming: Process newline-delimited JSON logs line by line for efficient event processing.
- Recursive descent: Traverse nested structures with the
..operator to find keys anywhere in a document.
Audience & Benefit:
Ideal for developers, system administrators, and anyone working with structured data. pick streamlines workflows by combining multiple utilities into one tool, reducing cognitive overhead and improving efficiency. Its flexibility makes it suitable for tasks ranging from simple data extraction to complex data transformations and log analysis.