{"id":26883667,"url":"https://github.com/jiro4989/gsv","last_synced_at":"2025-05-08T17:09:36.216Z","repository":{"id":38317431,"uuid":"468308204","full_name":"jiro4989/gsv","owner":"jiro4989","description":"gsv transforms a multi-line CSV into one-line JSON to make it easier to grep.","archived":false,"fork":false,"pushed_at":"2025-05-06T05:16:02.000Z","size":310,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-06T06:27:18.389Z","etag":null,"topics":["cli","csv","go","grep"],"latest_commit_sha":null,"homepage":"","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/jiro4989.png","metadata":{"files":{"readme":"README.adoc","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2022-03-10T11:09:55.000Z","updated_at":"2025-05-06T05:15:59.000Z","dependencies_parsed_at":"2024-05-10T14:52:29.616Z","dependency_job_id":"4cb6d126-dc2e-4f38-aa83-c161a3bfa8af","html_url":"https://github.com/jiro4989/gsv","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiro4989%2Fgsv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiro4989%2Fgsv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiro4989%2Fgsv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiro4989%2Fgsv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jiro4989","download_url":"https://codeload.github.com/jiro4989/gsv/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253112071,"owners_count":21856070,"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":["cli","csv","go","grep"],"created_at":"2025-03-31T17:36:36.054Z","updated_at":"2025-05-08T17:09:35.431Z","avatar_url":"https://github.com/jiro4989.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"= gsv\n:sectnums:\n:toc: left\n\nimage:https://github.com/jiro4989/gsv/actions/workflows/go-test.yml/badge.svg[test, link=\"https://github.com/jiro4989/gsv/actions/workflows/go-test.yml\"]\nimage:https://codecov.io/gh/jiro4989/gsv/branch/main/graph/badge.svg[codecov, link=\"https://codecov.io/gh/jiro4989/gsv\"]\n\n`gsv` transforms a multi-line CSV into one-line JSON to make it easier to `grep`.\n`gsv` is heavily inspired by https://github.com/tomnomnom/gron[gron].\n\n[source,bash]\n----\n⟩ cat testdata/sample1.csv\nLanguage,Word,Note\nEnglish,\"Hello\nWorld\",note\nJapanese,\"こんにちは\nこんばんは\",メモ\nEnglish,\"John\nRose\",\nJapanese,\"太郎\n花子\",\n\n⟩ cat testdata/sample1.csv | ./gsv\n[\"Language\",\"Word\",\"Note\"]\n[\"English\",\"Hello\\nWorld\",\"note\"]\n[\"Japanese\",\"こんにちは\\nこんばんは\",\"メモ\"]\n[\"English\",\"John\\nRose\",\"\"]\n[\"Japanese\",\"太郎\\n花子\",\"\"]\n\n⟩ cat testdata/sample1.csv | ./gsv | grep Japan\n[\"Japanese\",\"こんにちは\\nこんばんは\",\"メモ\"]\n[\"Japanese\",\"太郎\\n花子\",\"\"]\n\n⟩ cat testdata/sample1.csv | ./gsv | grep Japan | ./gsv -u\nJapanese,\"こんにちは\nこんばんは\",メモ\nJapanese,\"太郎\n花子\",\n----\n\n== Usage\n\n[source,bash]\n----\ngsv \u003ccsv_file\u003e | grep '\u003cpattern\u003e' | gsv -u\n----\n\n== Installation\n\n[source,bash]\n----\ngo install github.com/jiro4989/gsv@main\n----\n\nor download executables from https://github.com/jiro4989/gsv/releases[GitHub Releases].\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjiro4989%2Fgsv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjiro4989%2Fgsv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjiro4989%2Fgsv/lists"}