{"id":17688292,"url":"https://github.com/neroist/c2v","last_synced_at":"2025-03-30T21:28:21.859Z","repository":{"id":175996257,"uuid":"654830486","full_name":"neroist/c2v","owner":"neroist","description":"A tool that converts CSV files into JSON.","archived":false,"fork":false,"pushed_at":"2023-06-17T13:26:33.000Z","size":20,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-06T01:41:28.191Z","etag":null,"topics":["cli","conversion","csv","csv-parser","json","nim","nim-lang"],"latest_commit_sha":null,"homepage":"","language":"Nim","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/neroist.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}},"created_at":"2023-06-17T04:36:13.000Z","updated_at":"2023-06-17T19:41:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"23485929-0044-4fda-a818-223de9252eef","html_url":"https://github.com/neroist/c2v","commit_stats":null,"previous_names":["neroist/c2v"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neroist%2Fc2v","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neroist%2Fc2v/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neroist%2Fc2v/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neroist%2Fc2v/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neroist","download_url":"https://codeload.github.com/neroist/c2v/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246382906,"owners_count":20768302,"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","conversion","csv","csv-parser","json","nim","nim-lang"],"created_at":"2024-10-24T11:44:05.493Z","updated_at":"2025-03-30T21:28:21.796Z","avatar_url":"https://github.com/neroist.png","language":"Nim","readme":"# c2v\n\nA tool that converts CSV files into JSON. Supports four different types of\nJSON outputs:\n\n- Default: Outputs array of objects, each object representing a CSV row.\nEach key is a header and the corresponding value being the value of that\nheader in the represented row.\n- Hash/Keyed: Output an object instead of an array. First column is used as\nhash key.\n- Array: Outputs an array of arrays, each nested array representing a CSV row.\n- Column Array: Similar to Array, except it outputs an object, with each\nkey representing a CSV header and each corresponding value being the array\nof values under the header.\n\n## Usage\n\n```text\nUsage:\n  c2v [optional-params] [filename: string...]\nConvert CSV file to JSON\nOptions:\n  -h, --help                         print this cligen-erated help\n  --help-syntax                      advanced: prepend,plurals,..\n  -v, --version   bool    false      print version\n  -s=, --sep=     char    ','        The character used to separate fields in the CSV file.\n  -q=, --quote=   char    '\\\"'       The character to quote fields containing special characters like `separator`, `quote` or new-line characters. '0' (nul) disables the parsing of quotes.\n  -e=, --escape=  char    '\\x00'     Removes any special meaning from the specified character; '0' disables escaping; if escaping is disabled and `quote` is not '0', two `quote` characters are\n                                     parsed as one literal `quote` character.\n  --skip          bool    true       Whether or not to skip whitespace immediately following the separator.\n  -o=, --out=     string  \"\"         The output filename. By default is it set to the input filename with the file extension changed to \".json\"\n  -p, --print     bool    false      Whether or not to print the produced JSON to stdout. If this is true then `out` is ignored.\n  --output=       string  \"default\"  The type of JSON output to produce. Accepted values: default, hash, array, colarr.\n  -m, --minify    bool    false      Whether or not to minify the JSON output. If true, the `indent` option is ignored.\n  -i=, --indent=  int     4          How much, in spaces, to indent the JSON output. If `minify` is true, this option is ignored.\n```\n\n## Examples\n\nExample CSV data to test n play around with in C2V are found in the\n[`examples/`](examples/) directory.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneroist%2Fc2v","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneroist%2Fc2v","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneroist%2Fc2v/lists"}