{"id":15480368,"url":"https://github.com/winebarrel/jljoin","last_synced_at":"2026-04-29T18:34:19.357Z","repository":{"id":47489708,"uuid":"400735757","full_name":"winebarrel/jljoin","owner":"winebarrel","description":"Read two NDJSON files and combine lines with common member values.","archived":false,"fork":false,"pushed_at":"2023-05-08T04:45:55.000Z","size":28,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-14T23:14:29.279Z","etag":null,"topics":["json","jsonlines","ndjso","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-28T07:55:43.000Z","updated_at":"2023-05-08T04:45:38.000Z","dependencies_parsed_at":"2025-03-28T14:33:42.049Z","dependency_job_id":"3fa7586a-07bb-44a5-9a95-5fd8f0c418b8","html_url":"https://github.com/winebarrel/jljoin","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/winebarrel/jljoin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winebarrel%2Fjljoin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winebarrel%2Fjljoin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winebarrel%2Fjljoin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winebarrel%2Fjljoin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/winebarrel","download_url":"https://codeload.github.com/winebarrel/jljoin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winebarrel%2Fjljoin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32439260,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T18:12:22.909Z","status":"ssl_error","status_checked_at":"2026-04-29T18:11:33.322Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["json","jsonlines","ndjso","rust"],"created_at":"2024-10-02T04:41:51.130Z","updated_at":"2026-04-29T18:34:19.341Z","avatar_url":"https://github.com/winebarrel.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jljoin\n\nRead two [NDJSON](http://ndjson.org/) files and combine lines with common member values.\n\n**NOTE: FILE1 and FILE2 must be sorted by the value of the join member. (cf. [jlsort](https://github.com/winebarrel/jlsort))**\n\n[![Build Status](https://github.com/winebarrel/jljoin/workflows/CI/badge.svg)](https://github.com/winebarrel/jljoin/actions)\n\n## Installation\n\n```\nbrew install winebarrel/jl/jljoin\n```\n\n## Usage\n\n```\nUsage: jljoin [OPTIONS] FILE1 FILE2\n\nOptions:\n    -k, --key KEY       JSON key to join\n    -1, --key1 KEY1     JSON key to join of FILE1\n    -2, --key2 KEY2     JSON key to join of FILE2\n    -m, --merge PRIORITY_FILENUM (1 or 2)\n                        Merge the paired JSON\n        --allow-no-key  Allow no key\n    -v, --version       Print version and exit\n    -h, --help          Print usage and exit\n```\n\n```\n% cat a.ndjson\n{\"id\": 1, \"sub_id\": 11, \"file\":\"ndjson1\", \"val\":\"both\"}\n{\"id\": 2, \"sub_id\": 21, \"file\":\"ndjson1\", \"val\":\"both/multi 1\"}\n{\"id\": 2, \"sub_id\": 22, \"file\":\"ndjson1\", \"val\":\"both/multi 1\"}\n{\"id\": 3, \"sub_id\": 31, \"file\":\"ndjson1\", \"val\":\"both/multi 2\"}\n{\"id\": 4, \"sub_id\": 41, \"file\":\"ndjson1\", \"val\":\"only 1\"}\n{\"id\": 6, \"sub_id\": 62, \"file\":\"ndjson1\", \"val\":\"both/multi\"}\n{\"id\": 6, \"sub_id\": 61, \"file\":\"ndjson1\", \"val\":\"both/multi\"}\n\n% cat b.ndjson\n{\"id\": 1, \"sub_id\": 11, \"file\":\"ndjson2\", \"val\":\"both\"}\n{\"id\": 2, \"sub_id\": 21, \"file\":\"ndjson2\", \"val\":\"both/multi 1\"}\n{\"id\": 3, \"sub_id\": 31, \"file\":\"ndjson2\", \"val\":\"both/multi 2\"}\n{\"id\": 3, \"sub_id\": 32, \"file\":\"ndjson2\", \"val\":\"both/multi 2\"}\n{\"id\": 5, \"sub_id\": 51, \"file\":\"ndjson2\", \"val\":\"only 2\"}\n{\"id\": 6, \"sub_id\": 62, \"file\":\"ndjson2\", \"val\":\"both/multi\"}\n{\"id\": 6, \"sub_id\": 61, \"file\":\"ndjson2\", \"val\":\"both/multi\"}\n\n% jljoin -k id a.ndjson b.ndjson\n[{\"file\":\"ndjson1\",\"id\":1,\"sub_id\":11,\"val\":\"both\"},{\"file\":\"ndjson2\",\"id\":1,\"sub_id\":11,\"val\":\"both\"}]\n[{\"file\":\"ndjson1\",\"id\":2,\"sub_id\":21,\"val\":\"both/multi 1\"},{\"file\":\"ndjson2\",\"id\":2,\"sub_id\":21,\"val\":\"both/multi 1\"}]\n[{\"file\":\"ndjson1\",\"id\":2,\"sub_id\":22,\"val\":\"both/multi 1\"},{\"file\":\"ndjson2\",\"id\":2,\"sub_id\":21,\"val\":\"both/multi 1\"}]\n[{\"file\":\"ndjson1\",\"id\":3,\"sub_id\":31,\"val\":\"both/multi 2\"},{\"file\":\"ndjson2\",\"id\":3,\"sub_id\":31,\"val\":\"both/multi 2\"}]\n[{\"file\":\"ndjson1\",\"id\":3,\"sub_id\":31,\"val\":\"both/multi 2\"},{\"file\":\"ndjson2\",\"id\":3,\"sub_id\":32,\"val\":\"both/multi 2\"}]\n[{\"file\":\"ndjson1\",\"id\":6,\"sub_id\":62,\"val\":\"both/multi\"},{\"file\":\"ndjson2\",\"id\":6,\"sub_id\":62,\"val\":\"both/multi\"}]\n[{\"file\":\"ndjson1\",\"id\":6,\"sub_id\":62,\"val\":\"both/multi\"},{\"file\":\"ndjson2\",\"id\":6,\"sub_id\":61,\"val\":\"both/multi\"}]\n[{\"file\":\"ndjson1\",\"id\":6,\"sub_id\":61,\"val\":\"both/multi\"},{\"file\":\"ndjson2\",\"id\":6,\"sub_id\":62,\"val\":\"both/multi\"}]\n[{\"file\":\"ndjson1\",\"id\":6,\"sub_id\":61,\"val\":\"both/multi\"},{\"file\":\"ndjson2\",\"id\":6,\"sub_id\":61,\"val\":\"both/multi\"}]\n\n% jljoin -k id -m 1 a.ndjson b.ndjson\n{\"file\":\"ndjson1\",\"id\":1,\"sub_id\":11,\"val\":\"both\"}\n{\"file\":\"ndjson1\",\"id\":2,\"sub_id\":21,\"val\":\"both/multi 1\"}\n{\"file\":\"ndjson1\",\"id\":2,\"sub_id\":22,\"val\":\"both/multi 1\"}\n{\"file\":\"ndjson1\",\"id\":3,\"sub_id\":31,\"val\":\"both/multi 2\"}\n{\"file\":\"ndjson1\",\"id\":3,\"sub_id\":31,\"val\":\"both/multi 2\"}\n{\"file\":\"ndjson1\",\"id\":6,\"sub_id\":62,\"val\":\"both/multi\"}\n{\"file\":\"ndjson1\",\"id\":6,\"sub_id\":62,\"val\":\"both/multi\"}\n{\"file\":\"ndjson1\",\"id\":6,\"sub_id\":61,\"val\":\"both/multi\"}\n{\"file\":\"ndjson1\",\"id\":6,\"sub_id\":61,\"val\":\"both/multi\"}\n```\n\n## Related Links\n\n* https://github.com/winebarrel/jlsort\n* https://github.com/winebarrel/jluniq\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwinebarrel%2Fjljoin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwinebarrel%2Fjljoin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwinebarrel%2Fjljoin/lists"}