{"id":24003335,"url":"https://github.com/ikegee/csv-console-table-ps1","last_synced_at":"2025-10-13T12:43:31.899Z","repository":{"id":270812942,"uuid":"911531749","full_name":"ikegee/csv-console-table-ps1","owner":"ikegee","description":"Create snapshots of CSV files in console tables using PowerShell","archived":false,"fork":false,"pushed_at":"2025-01-21T07:08:59.000Z","size":56,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-21T08:19:44.122Z","etag":null,"topics":["console-application","csv-files","csv-reader","csv-validation","powershell","ps1","table-generator"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","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/ikegee.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":"2025-01-03T08:36:38.000Z","updated_at":"2025-01-21T07:09:02.000Z","dependencies_parsed_at":"2025-01-03T09:27:33.708Z","dependency_job_id":"f992c3db-61ca-4700-81a6-38efd22cddd8","html_url":"https://github.com/ikegee/csv-console-table-ps1","commit_stats":null,"previous_names":["ikegee/csv-console-table-ps1"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikegee%2Fcsv-console-table-ps1","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikegee%2Fcsv-console-table-ps1/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikegee%2Fcsv-console-table-ps1/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikegee%2Fcsv-console-table-ps1/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ikegee","download_url":"https://codeload.github.com/ikegee/csv-console-table-ps1/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240647313,"owners_count":19834773,"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":["console-application","csv-files","csv-reader","csv-validation","powershell","ps1","table-generator"],"created_at":"2025-01-08T01:10:08.884Z","updated_at":"2025-10-13T12:43:26.858Z","avatar_url":"https://github.com/ikegee.png","language":"PowerShell","readme":"# CSV Console Table in PowerShell\r\nThis PowerShell implementation provides dynamic column type detection and data validation while creating clean, aligned console output - making it ideal for consistent data snapshots and type verification.\r\n\r\n## Features\r\n- Dynamically detects and validates column types from CSV data\r\n- Supports multiple data types: Int, Float, Bool, String, and Null\r\n- Creates formatted console tables with proper alignment\r\n- Validates subsequent rows against the detected schema\r\n- Handles duplicate column names with automatic suffixes\r\n- Limits output width with smart string truncation\r\n- Saves output to both console and file\r\n\r\n## Example Input CSV ([`default.csv`](default.csv)):\r\n```csv\r\n1,Welcome to dynamic-csv-headers.ps1 Welcome to csv_console_table.ps1,10.00\r\n2,This is a sample data csv file,19.97\r\n3,1st row: set header types,1.99\r\n4,This file headers: 'int *char float *char',11.99\r\n5,Unknown types become `*char/string`,19.97\r\n6,'gcc -o xyz .\\csv_processor.c -lm',19.17\r\n7,'.\\csv_console_table.ps1',19.84\r\n8,'python -m grip README.md',16.89\r\n9,'.\\csv_console_table.ps1' yourfile.csv ,19.97\r\n```\r\n\r\n## Example Output \r\n![Console Output](screenshots/csv_console_ps1.png)\r\n\r\n## Usage\r\n- **PowerShell**:\r\n   - .\\csv_console_table.ps1 .\\yourfile.csv (optional)\r\n\r\n- **BASH**:\r\n   - pwsh csv_console_table.ps1 yourfile.csv (optional)\r\n\r\n## Parameters\r\n - DefaultFile: Path to CSV file (default: \"default.csv\")\r\n - rowLimit: Maximum rows to process (range: 1-1000, default: 10)\r\n\r\n## Data Type Detection\r\n- The script automatically detects these column types:\r\n   - Int (whole numbers)\r\n   - Float (decimal numbers)\r\n   - Bool (true/false)\r\n   - String (text)\r\n   - Null (empty or null values)\r\n\r\n## Limitations\r\n- The script assumes the first row contains column headers.\r\n- Duplicate column names are not supported.\r\n- The output width is limited to 120 characters.\r\n\r\n## Requirements\r\n- PowerShell 7.0+\r\n- Read access to CSV files\r\n\r\n## Purpose\r\n- This PowerShell implementation offers:\r\n   - Dynamic type detection and validation\r\n   - Clean console output formatting\r\n   - Data integrity verification\r\n   - Platform independence\r\n   - Educational resource for PowerShell scripting practices\r\n\r\n## Alternatives\r\n- **PowerShell**:\r\n   - Import-Csv \"data.csv\" | Format-Table\r\n\r\n- **BASH**:\r\n   - csvcut -c 1,2,3 default.csv\r\n\r\n## License\r\n - This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fikegee%2Fcsv-console-table-ps1","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fikegee%2Fcsv-console-table-ps1","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fikegee%2Fcsv-console-table-ps1/lists"}