{"id":13413706,"url":"https://github.com/tomwright/dasel","last_synced_at":"2025-12-26T15:33:51.989Z","repository":{"id":37497965,"uuid":"297615696","full_name":"TomWright/dasel","owner":"TomWright","description":"Select, put and delete data from JSON, TOML, YAML, XML and CSV files with a single tool. Supports conversion between formats and can be used as a Go package.","archived":false,"fork":false,"pushed_at":"2025-09-02T12:36:05.000Z","size":10605,"stargazers_count":7578,"open_issues_count":45,"forks_count":154,"subscribers_count":32,"default_branch":"master","last_synced_at":"2025-09-02T14:37:15.380Z","etag":null,"topics":["cli","config","configuration","data-processing","data-structures","data-wrangling","devops-tools","go","golang","json","json-processing","parser","query","selector","toml","update","xml","yaml","yaml-processor"],"latest_commit_sha":null,"homepage":"https://daseldocs.tomwright.me","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TomWright.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"TomWright","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":["https://www.buymeacoffee.com/TomWright"]}},"created_at":"2020-09-22T10:33:56.000Z","updated_at":"2025-09-02T14:21:07.000Z","dependencies_parsed_at":"2023-12-15T09:48:51.379Z","dependency_job_id":"9f08f519-5d6c-4944-9960-d959fe88b925","html_url":"https://github.com/TomWright/dasel","commit_stats":{"total_commits":595,"total_committers":28,"mean_commits":21.25,"dds":"0.16806722689075626","last_synced_commit":"e96f281f05a1c1f01ed251f7041dfd0f49325b1a"},"previous_names":[],"tags_count":84,"template":false,"template_full_name":null,"purl":"pkg:github/TomWright/dasel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomWright%2Fdasel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomWright%2Fdasel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomWright%2Fdasel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomWright%2Fdasel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TomWright","download_url":"https://codeload.github.com/TomWright/dasel/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomWright%2Fdasel/sbom","scorecard":{"id":142669,"data":{"date":"2025-08-11","repo":{"name":"github.com/TomWright/dasel","commit":"9e862d1faba5bcab3a810df6783358fc75030794"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.4,"checks":[{"name":"Code-Review","score":4,"reason":"Found 6/14 approved changesets -- score normalized to 4","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":5,"reason":"1 commit(s) and 5 issue activity found in the last 90 days -- score normalized to 5","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/build-dev.yaml:1","Warn: no topLevel permission defined: .github/workflows/build-test.yaml:1","Warn: no topLevel permission defined: .github/workflows/build.yaml:1","Warn: no topLevel permission defined: .github/workflows/bump-homebrew.yaml:1","Warn: no topLevel permission defined: .github/workflows/codeql-analysis.yml:1","Warn: no topLevel permission defined: .github/workflows/container.yaml:1","Warn: no topLevel permission defined: .github/workflows/test.yaml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build-dev.yaml:65: update your workflow using https://app.stepsecurity.io/secureworkflow/TomWright/dasel/build-dev.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build-dev.yaml:66: update your workflow using https://app.stepsecurity.io/secureworkflow/TomWright/dasel/build-dev.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build-test.yaml:77: update your workflow using https://app.stepsecurity.io/secureworkflow/TomWright/dasel/build-test.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build-test.yaml:78: update your workflow using https://app.stepsecurity.io/secureworkflow/TomWright/dasel/build-test.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yaml:73: update your workflow using https://app.stepsecurity.io/secureworkflow/TomWright/dasel/build.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yaml:74: update your workflow using https://app.stepsecurity.io/secureworkflow/TomWright/dasel/build.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build.yaml:87: update your workflow using https://app.stepsecurity.io/secureworkflow/TomWright/dasel/build.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build.yaml:94: update your workflow using https://app.stepsecurity.io/secureworkflow/TomWright/dasel/build.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/bump-homebrew.yaml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/TomWright/dasel/bump-homebrew.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/bump-homebrew.yaml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/TomWright/dasel/bump-homebrew.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:39: update your workflow using https://app.stepsecurity.io/secureworkflow/TomWright/dasel/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:43: update your workflow using https://app.stepsecurity.io/secureworkflow/TomWright/dasel/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:54: update your workflow using https://app.stepsecurity.io/secureworkflow/TomWright/dasel/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:68: update your workflow using https://app.stepsecurity.io/secureworkflow/TomWright/dasel/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/container.yaml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/TomWright/dasel/container.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/container.yaml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/TomWright/dasel/container.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/container.yaml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/TomWright/dasel/container.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/container.yaml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/TomWright/dasel/container.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/container.yaml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/TomWright/dasel/container.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/container.yaml:77: update your workflow using https://app.stepsecurity.io/secureworkflow/TomWright/dasel/container.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/container.yaml:84: update your workflow using https://app.stepsecurity.io/secureworkflow/TomWright/dasel/container.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yaml:8: update your workflow using https://app.stepsecurity.io/secureworkflow/TomWright/dasel/test.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yaml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/TomWright/dasel/test.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yaml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/TomWright/dasel/test.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yaml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/TomWright/dasel/test.yaml/master?enable=pin","Warn: containerImage not pinned by hash: Dockerfile:3","Warn: containerImage not pinned by hash: Dockerfile:13","Info:   0 out of  15 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of  10 third-party GitHubAction dependencies pinned","Info:   0 out of   2 containerImage dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v2.8.1 not signed: https://api.github.com/repos/TomWright/dasel/releases/163225306","Warn: release artifact v2.8.0 not signed: https://api.github.com/repos/TomWright/dasel/releases/163012371","Warn: release artifact v2.7.0 not signed: https://api.github.com/repos/TomWright/dasel/releases/146610640","Warn: release artifact v2.6.0 not signed: https://api.github.com/repos/TomWright/dasel/releases/142212023","Warn: release artifact v2.5.0 not signed: https://api.github.com/repos/TomWright/dasel/releases/131715345","Warn: release artifact v2.8.1 does not have provenance: https://api.github.com/repos/TomWright/dasel/releases/163225306","Warn: release artifact v2.8.0 does not have provenance: https://api.github.com/repos/TomWright/dasel/releases/163012371","Warn: release artifact v2.7.0 does not have provenance: https://api.github.com/repos/TomWright/dasel/releases/146610640","Warn: release artifact v2.6.0 does not have provenance: https://api.github.com/repos/TomWright/dasel/releases/142212023","Warn: release artifact v2.5.0 does not have provenance: https://api.github.com/repos/TomWright/dasel/releases/131715345"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Vulnerabilities","score":7,"reason":"3 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2024-3333","Warn: Project is vulnerable to: GO-2025-3503 / GHSA-qxp5-gwg8-xv66","Warn: Project is vulnerable to: GO-2025-3595 / GHSA-vvgc-356p-c3xw"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":7,"reason":"SAST tool detected but not run on all commits","details":["Info: SAST configuration detected: CodeQL","Warn: 9 commits out of 24 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-16T08:32:35.052Z","repository_id":37497965,"created_at":"2025-08-16T08:32:35.053Z","updated_at":"2025-08-16T08:32:35.053Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274357608,"owners_count":25270675,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-09T02:00:10.223Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","config","configuration","data-processing","data-structures","data-wrangling","devops-tools","go","golang","json","json-processing","parser","query","selector","toml","update","xml","yaml","yaml-processor"],"created_at":"2024-07-30T20:01:46.976Z","updated_at":"2025-12-26T15:33:51.978Z","avatar_url":"https://github.com/TomWright.png","language":"Go","funding_links":["https://github.com/sponsors/TomWright","https://www.buymeacoffee.com/TomWright"],"categories":["JSON","Query Language","Data Manipulation","Go语言包管理","Queries","Multimedia and File Formats","查询语言","Transformation"],"sub_categories":["Open USP Tsukubai","HTTP Clients","Processors","查询语","Directory Navigation","HTTP客户端","YAML is a **supserset of JSON**"],"readme":"[![Gitbook](https://badges.aleen42.com/src/gitbook_1.svg)](https://daseldocs.tomwright.me)\n[![Go Report Card](https://goreportcard.com/badge/github.com/tomwright/dasel/v3)](https://goreportcard.com/report/github.com/tomwright/dasel/v3)\n[![PkgGoDev](https://pkg.go.dev/badge/github.com/tomwright/dasel)](https://pkg.go.dev/github.com/tomwright/dasel/v3)\n![Test](https://github.com/TomWright/dasel/workflows/Test/badge.svg)\n![Build](https://github.com/TomWright/dasel/workflows/Build/badge.svg)\n[![codecov](https://codecov.io/gh/TomWright/dasel/branch/master/graph/badge.svg)](https://codecov.io/gh/TomWright/dasel)\n[![Mentioned in Awesome Go](https://awesome.re/mentioned-badge.svg)](https://github.com/avelino/awesome-go)\n![GitHub All Releases Downloads](https://img.shields.io/github/downloads/TomWright/dasel/total)\n![GitHub License](https://img.shields.io/github/license/TomWright/dasel)\n[![GitHub tag (latest by date)](https://img.shields.io/github/v/tag/TomWright/dasel?label=latest%20release)](https://github.com/TomWright/dasel/releases/latest)\n[![Homebrew tag (latest by date)](https://img.shields.io/homebrew/v/dasel)](https://formulae.brew.sh/formula/dasel)\n\n\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"./daselgopher.png\" alt=\"Dasel mascot\" width=\"250\"/\u003e\n\u003c/div\u003e\n\n# Dasel\n\nDasel (short for **Data-Select**) is a command-line tool and library for querying, modifying, and transforming data structures such as JSON, YAML, TOML, XML, and CSV.\n\nIt provides a consistent, powerful syntax to traverse and update data — making it useful for developers, DevOps, and data wrangling tasks.\n\n---\n\n## Features\n\n* **Multi-format support**: JSON, YAML, TOML, XML, CSV, HCL, INI.\n* **Unified query syntax**: Access data in any format with the same selectors.\n* **Query \u0026 search**: Extract values, lists, or structures with intuitive syntax.\n* **Modify in place**: Update, insert, or delete values directly in structured files.\n* **Convert between formats**: Seamlessly transform data from JSON → YAML, TOML → JSON, etc.\n* **Script-friendly**: Simple CLI integration for shell scripts and pipelines.\n* **Library support**: Import and use in Go projects.\n\n---\n\n## Installation\n\n### Homebrew (macOS/Linux)\n\n```sh\nbrew install dasel\n```\n\n### Go Install\n\n```sh\ngo install github.com/tomwright/dasel/v3/cmd/dasel@master\n```\n\n### Prebuilt Binaries\n\nPrebuilt binaries are available on the [Releases](https://github.com/TomWright/dasel/releases) page for Linux, macOS, and Windows.\n\n### None of the above?\n\nSee the [installation docs](https://daseldocs.tomwright.me/getting-started/installation) for more options.\n\n---\n\n## Basic Usage\n\n### Selecting Values\n\nBy default, Dasel evaluates the final selector and prints the result.\n\n```sh\necho '{\"foo\": {\"bar\": \"baz\"}}' | dasel -i json 'foo.bar'\n# Output: \"baz\"\n```\n\n### Modifying Values\n\nUpdate values inline:\n\n```sh\necho '{\"foo\": {\"bar\": \"baz\"}}' | dasel -i json 'foo.bar = \"bong\"'\n# Output: \"bong\"\n```\n\nUse `--root` to output the full document after modification:\n\n```sh\necho '{\"foo\": {\"bar\": \"baz\"}}' | dasel -i json --root 'foo.bar = \"bong\"'\n# Output:\n{\n  \"foo\": {\n    \"bar\": \"bong\"\n  }\n}\n```\n\nUpdate values based on previous value:\n\n```sh\necho '[1,2,3,4,5]' | dasel -i json --root 'each($this = $this*2)'\n# Output:\n[\n    2,\n    4,\n    6,\n    8,\n    10\n]\n```\n\n### Format Conversion\n\n```sh\ncat data.json | dasel -i json -o yaml\n```\n\n### Recursive Descent (`..`)\n\nSearches all nested objects and arrays for a matching key or index.\n\n```sh\necho '{\"foo\": {\"bar\": \"baz\"}}' | dasel -i json '..bar'\n# Output:\n[\n    \"baz\"\n]\n\n```\n\n### Search (`search`)\n\nFinds all values matching a condition anywhere in the structure.\n\n```sh\necho '{\"foo\": {\"bar\": \"baz\"}}' | dasel -i json 'search(bar == \"baz\")'\n# Output:\n[\n    {\n        \"bar\": \"baz\"\n    }\n]\n\n```\n\n---\n\n## Documentation\n\nFull documentation is available at [daseldocs.tomwright.me](https://daseldocs.tomwright.me).\n\n---\n\n## Contributing\n\nContributions are welcome! Please see the [CONTRIBUTING.md](./CONTRIBUTING.md) for details.\n\n---\n\n## License\n\nMIT License. See [LICENSE](./LICENSE) for details.\n\n## Stargazers over time\n\n[![Stargazers over time](https://starchart.cc/TomWright/dasel.svg)](https://starchart.cc/TomWright/dasel)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomwright%2Fdasel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomwright%2Fdasel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomwright%2Fdasel/lists"}