{"id":15480343,"url":"https://github.com/winebarrel/jluniq","last_synced_at":"2026-04-12T16:02:16.778Z","repository":{"id":66256635,"uuid":"401051368","full_name":"winebarrel/jluniq","owner":"winebarrel","description":"Remove duplicate key member lines from sorted NDJSON.","archived":false,"fork":false,"pushed_at":"2021-08-30T12:32:07.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-10-19T04:31:25.478Z","etag":null,"topics":["json","jsonlines","ndjson","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/winebarrel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"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}},"created_at":"2021-08-29T13:41:00.000Z","updated_at":"2021-08-30T12:31:46.000Z","dependencies_parsed_at":"2023-02-20T18:45:49.990Z","dependency_job_id":null,"html_url":"https://github.com/winebarrel/jluniq","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"0931ab114178a350b9e5a2cc80ed454eb8e902c4"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/winebarrel/jluniq","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winebarrel%2Fjluniq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winebarrel%2Fjluniq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winebarrel%2Fjluniq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winebarrel%2Fjluniq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/winebarrel","download_url":"https://codeload.github.com/winebarrel/jluniq/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winebarrel%2Fjluniq/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266210835,"owners_count":23893337,"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","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":["json","jsonlines","ndjson","rust"],"created_at":"2024-10-02T04:41:46.396Z","updated_at":"2025-10-30T03:15:25.734Z","avatar_url":"https://github.com/winebarrel.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jluniq\n\nRemove duplicate key member lines from sorted [NDJSON](http://ndjson.org/).\n\n**Important: NDJSON file must be sorted by the value of the uniq key member. (e.g. [jlsort](https://github.com/winebarrel/jlsort))**\n\n[![Build Status](https://github.com/winebarrel/jluniq/workflows/CI/badge.svg)](https://github.com/winebarrel/jluniq/actions)\n\n## Installation\n\n```\nbrew install winebarrel/jl/jluniq\n```\n\n## Usage\n\n```\nUsage: jluniq [OPTIONS] [FILE]\n\nOptions:\n    -k, --key KEY       JSON key to make it unique\n    -g, --group         Group rows with the same value\n    -c, --count         Count lines\n    -v, --version       Print version and exit\n    -h, --help          Print usage and exit\n```\n\n```\n% cat data.ndjson\n{\"id\": 1, \"sub_id\": 11, \"val\":\"abc\"}\n{\"id\": 2, \"sub_id\": 21, \"val\":\"def\"}\n{\"id\": 2, \"sub_id\": 22, \"val\":\"ghi\"}\n{\"id\": 3, \"sub_id\": 31, \"val\":\"jkl\"}\n{\"id\": 4, \"sub_id\": 41, \"val\":\"mno\"}\n{\"id\": 5, \"sub_id\": 51, \"val\":\"pqr\"}\n{\"id\": 5, \"sub_id\": 52, \"val\":\"slu\"}\n{\"id\": 6, \"sub_id\": 61, \"val\":\"vwz\"}\n\n% jluniq -k id data.ndjson\n{\"id\":1,\"sub_id\":11,\"val\":\"abc\"}\n{\"id\":2,\"sub_id\":21,\"val\":\"def\"}\n{\"id\":3,\"sub_id\":31,\"val\":\"jkl\"}\n{\"id\":4,\"sub_id\":41,\"val\":\"mno\"}\n{\"id\":5,\"sub_id\":51,\"val\":\"pqr\"}\n{\"id\":6,\"sub_id\":61,\"val\":\"vwz\"}\n\n% cat data.ndjson | jluniq -k id\n{\"id\":1,\"sub_id\":11,\"val\":\"abc\"}\n{\"id\":2,\"sub_id\":21,\"val\":\"def\"}\n{\"id\":3,\"sub_id\":31,\"val\":\"jkl\"}\n{\"id\":4,\"sub_id\":41,\"val\":\"mno\"}\n{\"id\":5,\"sub_id\":51,\"val\":\"pqr\"}\n{\"id\":6,\"sub_id\":61,\"val\":\"vwz\"}\n\n% jluniq -k id -g data.ndjson\n[1,{\"id\":1,\"sub_id\":11,\"val\":\"abc\"}]\n[2,{\"id\":2,\"sub_id\":21,\"val\":\"def\"},{\"id\":2,\"sub_id\":22,\"val\":\"ghi\"}]\n[3,{\"id\":3,\"sub_id\":31,\"val\":\"jkl\"}]\n[4,{\"id\":4,\"sub_id\":41,\"val\":\"mno\"}]\n[5,{\"id\":5,\"sub_id\":51,\"val\":\"pqr\"},{\"id\":5,\"sub_id\":52,\"val\":\"slu\"}]\n[6,{\"id\":6,\"sub_id\":61,\"val\":\"vwz\"}]\n\n% jluniq -c id data.ndjson\n[1,1]\n[2,2]\n[3,1]\n[4,1]\n[5,2]\n[6,1]\n```\n\n## Related Links\n\n* https://github.com/winebarrel/jlsort\n* https://github.com/winebarrel/jljoin\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwinebarrel%2Fjluniq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwinebarrel%2Fjluniq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwinebarrel%2Fjluniq/lists"}