Dasel Data Selection and Modification Tool

Dasel Data Selection and Modification Tool

github.com

1

About this website

Dasel (Data Selector) is a free and open-source command-line tool for querying, modifying, and converting data between various structured data formats. Created by Tom Wright in 2020 and written in Go, Dasel is designed as a unified replacement for multiple format-specific tools (jq for JSON, yq for YAML, dasel for TOML, etc.), providing a single tool that can read, query, modify, and write across all supported formats with a consistent syntax and selector language. Key features: multi-format support: read and write JSON, YAML, TOML, XML, CSV, and plain text files, with automatic format detection based on file extension. Cross-format conversion: convert data between any supported formats (JSON to YAML, YAML to TOML, XML to JSON, etc.) with a single command: dasel -r json -w yaml. Selector syntax: a powerful dot-notation selector syntax for navigating and querying nested data structures. Object/Map access: .key for object properties. Array access: .key.[0] for array indices, .key.[*] for all elements. Array filtering: .key.(name=value) to filter array elements by property value. Dynamic key access: .key.(innerKey=innerValue).outerKey. Function-based queries: len(), keys(), values(), type(), etc. Put (modify) mode: update values in-place and write back to the file: dasel put string -f config.yaml .server.port 8080. Delete mode: remove keys or array elements. Validation: validate data structure against format requirements. Multiple file input: read from stdin, files, or URLs. Pipeline mode: chain multiple operations. Pretty-printing with customizable indentation. Zero runtime dependencies (single static binary). Cross-platform: Linux, macOS, Windows, FreeBSD. MIT.

Tags & Categories

Categories

Tags

Statistics

1
Views
0
Clicks
0
Like
0
Dislike

Comments

Log In to post a comment

No comments yet. Be the first!