{"id":51119054,"url":"https://github.com/sulthonzh/csv2json","last_synced_at":"2026-06-25T00:30:40.074Z","repository":{"id":364978610,"uuid":"1264724312","full_name":"sulthonzh/csv2json","owner":"sulthonzh","description":"Convert CSV to JSON from the terminal. Zero deps.","archived":false,"fork":false,"pushed_at":"2026-06-15T09:45:48.000Z","size":17,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-15T11:51:59.837Z","etag":null,"topics":["cli","convert","csv","csv2json","json"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/sulthonzh.png","metadata":{"files":{"readme":"README.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-10T06:05:26.000Z","updated_at":"2026-06-15T09:45:02.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/sulthonzh/csv2json","commit_stats":null,"previous_names":["sulthonzh/csv2json"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/sulthonzh/csv2json","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sulthonzh%2Fcsv2json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sulthonzh%2Fcsv2json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sulthonzh%2Fcsv2json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sulthonzh%2Fcsv2json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sulthonzh","download_url":"https://codeload.github.com/sulthonzh/csv2json/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sulthonzh%2Fcsv2json/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34755061,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-24T02:00:07.484Z","response_time":106,"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","convert","csv","csv2json","json"],"created_at":"2026-06-25T00:30:40.006Z","updated_at":"2026-06-25T00:30:40.070Z","avatar_url":"https://github.com/sulthonzh.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# csv2json\n\nConvert CSV to JSON right in your terminal. Zero dependencies.\n\nYou've got a CSV file. You need JSON. That's it. No Excel, no Python, no online converter that's secretly harvesting your data.\n\n## Install\n\n```bash\nnpm install -g csv2json-cli\n```\n\n## Usage\n\n```bash\n# Basic — outputs JSON array\ncsv2json users.csv\n\n# Pretty printed\ncsv2json users.csv --pretty\n\n# Read from stdin\ncat data.csv | csv2json -\n\n# Output as JSON Lines (one object per line)\ncsv2json users.csv -o jsonl\n\n# Table format (quick preview)\ncsv2json users.csv -o pretty\n```\n\n## Filtering \u0026 Selecting\n\n```bash\n# Pick specific columns\ncsv2json users.csv -s name,email\n\n# Filter rows\ncsv2json users.csv -w \"age\u003e25\"\ncsv2json users.csv -w \"status=active\"\ncsv2json users.csv -w \"name~alice\"    # contains (case-insensitive)\n\n# Combine them\ncsv2json users.csv -s name,age -w \"age\u003e30\"\n```\n\n## Options\n\n| Flag | Short | Description |\n|------|-------|-------------|\n| `--delimiter \u003cchar\u003e` | `-d` | CSV delimiter (auto-detected by default) |\n| `--output \u003cformat\u003e` | `-o` | Output format: `json` (default), `jsonl`, `pretty` |\n| `--pretty` | `-p` | Pretty-print JSON output |\n| `--select \u003cfields\u003e` | `-s` | Select specific columns (comma-separated) |\n| `--where \u003cexpr\u003e` | `-w` | Filter: `field=value`, `field\u003e5`, `field~text` |\n| `--no-header` | | First row is data, not headers |\n| `--help` | `-h` | Show help |\n\n### Where operators\n\n| Op | Meaning |\n|----|---------|\n| `=` | Equals |\n| `!=` | Not equals |\n| `\u003e` | Greater than |\n| `\u003c` | Less than |\n| `~` | Contains (case-insensitive) |\n\n## Auto-Detection\n\nDetects delimiter automatically — comma, tab, semicolon, pipe. Works with:\n- Standard CSV\n- TSV (tab-separated)\n- Semicolon-separated (common in European locales)\n- Pipe-delimited\n\n## Type Coercion\n\nValues are automatically converted:\n- Numbers → `42`, `3.14`\n- Booleans → `true`, `false`\n- Null → `null`\n- Everything else stays a string\n\n## Why\n\nBecause every other CSV-to-JSON tool either needs Python, opens a browser, or has 47 dependencies. This one does one thing and does it with zero deps.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsulthonzh%2Fcsv2json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsulthonzh%2Fcsv2json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsulthonzh%2Fcsv2json/lists"}