Dasel (short for data-selector) allows you to query and modify data structures using selector strings.
Comparable to jq / yq, but supports JSON, YAML, TOML, XML and CSV with zero runtime dependencies.
Say good bye to learning new tools just to work with a different data format.
Dasel uses a standard selector syntax no matter the data format. This means that once you learn how to use dasel you immediately have the ability to query/modify any of the supported data types without any additional tools or effort.
Dasel is available on homebrew, ASDF, scoop, docker or as compiled binaries from the latest release.
brew install dasel
You can also install a development version with:
go install github.com/tomwright/dasel/cmd/[email protected]
For more information see the installation documentation.
echo '{"name": "Tom"}' | dasel -p json '.name'
"Tom"
I have enabled discussions on this repository.
I am aware there may be some confusion when deciding where you should communicate when reporting issues, asking questions or raising feature requests so this section aims to help us align on that.
Please raise an issue if:
Please open a discussion if:
The official dasel docs can be found at daseldocs.tomwright.me.
You can test out dasel commands using the playground.
Source code for the playground can be found at github.com/TomWright/daselplayground.
In my tests dasel has been up to 3x faster than jq and 15x faster than yq.
See the benchmark directory.