{"id":20265228,"url":"https://github.com/guitarbum722/fixedtocsv","last_synced_at":"2026-06-05T08:31:45.471Z","repository":{"id":62867770,"uuid":"112411973","full_name":"Guitarbum722/fixedtocsv","owner":"Guitarbum722","description":"Convert a fixed width flat file to a CSV.","archived":false,"fork":false,"pushed_at":"2017-12-07T13:49:18.000Z","size":27,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-14T05:10:04.917Z","etag":null,"topics":["csv","fixed-width","go","golang","tool","transformation"],"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/Guitarbum722.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}},"created_at":"2017-11-29T01:47:50.000Z","updated_at":"2017-12-23T02:52:21.000Z","dependencies_parsed_at":"2022-11-08T06:33:36.777Z","dependency_job_id":null,"html_url":"https://github.com/Guitarbum722/fixedtocsv","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Guitarbum722%2Ffixedtocsv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Guitarbum722%2Ffixedtocsv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Guitarbum722%2Ffixedtocsv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Guitarbum722%2Ffixedtocsv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Guitarbum722","download_url":"https://codeload.github.com/Guitarbum722/fixedtocsv/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241739432,"owners_count":20012103,"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":["csv","fixed-width","go","golang","tool","transformation"],"created_at":"2024-11-14T11:46:22.907Z","updated_at":"2026-06-05T08:31:45.467Z","avatar_url":"https://github.com/Guitarbum722.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"### fixedtocsv\n\nConvert a data-positioned (fixed width) file to CSV format.\n\n```go\ngo get -u github.com/Guitarbum722/fixedtocsv\n\ncd fixedtocsv\n\nmake build\n```\n\n#### Usage:\n```\nUsage: fixedtocsv [-c] [-d] [-f] [-o]\n        Options:\n          -h | --help  help\n          -c           input configuration file (default: \"config.json\" in current directory)\n          -d           output delimiter (default: comma \",\")\n          -f           input file name (Required)\n          -o           output file name (default: \"output.csv\" in current directory)\n```\n\nThe only required flag is `-f` which specifies the input file.\n\nA JSON or CSV file is expected to provide the configuration of the input data (being the fixed width flat file).\n\nCurrently, a file named `config.json` is expected by default.  Please see the flags above to specify a different file name.\n\nHere is an example of the configuration file.  Most importantly, each object in `columnLens` represents a field in the file.  The order of the fields will be evaluated in the order in which they appear in the JSON.\n\n```json\n{\n    \"columnLens\": [\n        {\n            \"start\": 0,\n            \"end\": 6\n        },\n        {\n            \"start\": 7,\n            \"end\": 21\n        }\n    ]\n}\n```\n\nIf you want to use a CSV for the configuration, then it should have the below format (headers are expected).  You will need to use the `-csv` option AND the `-c` flag with a file name is REQUIRED in this case.\n\n```\ncolumn,start,end\n0,0,6\n1,7,21\n2,22,38\n3,39,63\n4,64,101\n5,102,136\n6,137,149\n7,150,163\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguitarbum722%2Ffixedtocsv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguitarbum722%2Ffixedtocsv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguitarbum722%2Ffixedtocsv/lists"}