Sign in Subscribe
Hazem Abbas
— 3 min read
yq is a powerful and versatile command-line YAML processor. It is similar to renowned projects like jq (a command-line JSON processor) or sed, but specifically tailored for YAML files. With yq, you have the confidence to effortlessly perform a wide range of tasks, including deep reading a YAML file using a path expression, comparing YAML files, updating a YAML file based on a path expression or script file, and much more.
Furthermore, yq empowers you with the capability to merge multiple YAML files, with flexible options for overriding and appending.
Developed in efficient and portable Go, yq grants you the assurance of downloading a binary that is completely self-contained and requires no additional dependencies.
Features
- Written in portable Go programming language, ensuring compatibility across different platforms.
- Allows for colorization of output, enhancing readability and visual appeal.
- Enables deep reading of YAML files using a given path expression, providing easy access to specific data within the file.
- Can match and list paths that match a given path expression, allowing for efficient data retrieval.
- Provides the ability to return the lengths of arrays, objects, and scalars, giving insights into the size and structure of the data.
- Allows for updating of YAML files using a path expression or script file, making it easy to modify the contents of the file.
- Creates any missing entries in the specified path on the fly, ensuring that the desired data structure is maintained.
- Facilitates deep comparison of YAML files, allowing for easy identification of differences between two files.
- Retains the original formatting and comments of YAML files during updates, preserving the integrity and context of the data.
- Provides validation of YAML files, ensuring that they adhere to the specified structure and format.
- Allows for the creation of YAML files with a deep path and value, or the creation of a script file for more complex data generation.
- Supports the prefixing of a path to a YAML file, enabling easy integration of data from different sources.
- Offers seamless conversion between JSON and YAML formats, providing flexibility in data interchange.
- Allows for piping of data using the '-' symbol, facilitating easy integration with other command-line tools.
- Enables the merging of multiple YAML files, with options for overriding and appending data as needed.
- Supports the handling of multiple documents within a single YAML file, providing efficient reading, writing, and merging capabilities.
- Provides general shell completion scripts for popular shell environments such as bash, zsh, fish, and powershell, enhancing user experience and productivity.
- Decode/Encode base64 data
- Load content from other files
- Convert to/from json/ndjson
- Convert to/from xml
- Convert to/from properties
- Convert to/from csv/tsv
Platforms
- Windows
- Linux
- macOS
- Docker
License
MIT License
Resources & Download
Skylark Editor is a Free Portable Lightweight Text/ Hex Editor
Skylark Editor is a lightweight, portable, and fast text and hex editor designed for efficiency and customization. It is ideal for developers, programmers, and anyone needing a robust editor that can handle both text and hex editing tasks.Despite its small footprint, Skylark Editor packs a powerful set of features
Colima: Free Lightweight Container Management for macOS and Linux
Colima is a powerful and lightweight tool designed to provide efficient container management on macOS and Linux. Built with simplicity and speed in mind, Colima offers a streamlined experience for developers working with containers in a desktop environment.Colima is an excellent choice for developers looking for a lightweight, efficient,
Zed - Open-source Free Collaborative Code Editor, Is it the time for a Switch?
Introducing Zed: The Future of Code Editing
Discover Snap: Effortless Screenshot Tool for macOS (Free and Open-source)
Snap is an open-source screenshot tool for macOS designed to simplify the process of capturing, annotating, and sharing screenshots. Developed by techrisdev, Snap offers a sleek and intuitive interface, making it an ideal choice for users who need a reliable and efficient screenshot solution.Key Features of Snap * Easy Capture:
KatSearch: A Free Swift File Search Tool for macOS
KatSearch is a powerful yet straightforward tool for macOS users who require a fast and efficient file search solution. Its integration with Spotlight, combined with a user-friendly interface and advanced filtering options, makes it a standout choice for enhancing your file management workflow.This lightweight tool leverages macOS's
RegEx Tester is a an Amazing Open-source App for Linux
RegEx Tester is a Free and open-source RegEx Tester app for Linux desktops. It is written using Vala and comes with a clean user-interface.RegEx Tester is originally written and designed for elementary OS.Top 18 Free Regex Editors, Testers and Builders for Linux, Windows and macOSWhat is a Regular
Read more
Articles
Systems
Cross-platform macOS Windows Linux Android RaspberryPiDevelopment
Frameworks JavaScript Flutter Next.js StratersApps
Docker Self-hosted Terminal JavaScience - Healthcare
Healthcare Medical Records Radiology (DICOM-PACS)Open-source Apps
9,500+
Medical Apps
500+
Lists
450+
Dev. Resources
900+