{"id":20651446,"url":"https://github.com/artem14133q/mtable","last_synced_at":"2026-05-04T20:35:14.553Z","repository":{"id":248824387,"uuid":"829891853","full_name":"artem14133q/mtable","owner":"artem14133q","description":"Util for show table from csv","archived":false,"fork":false,"pushed_at":"2024-07-17T07:59:54.000Z","size":153,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-17T10:26:18.268Z","etag":null,"topics":["go","shell","table","terminal"],"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/artem14133q.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":"2024-07-17T07:44:31.000Z","updated_at":"2024-10-19T14:17:42.000Z","dependencies_parsed_at":"2024-07-17T10:08:06.385Z","dependency_job_id":null,"html_url":"https://github.com/artem14133q/mtable","commit_stats":null,"previous_names":["artem14133q/mtable"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artem14133q%2Fmtable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artem14133q%2Fmtable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artem14133q%2Fmtable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artem14133q%2Fmtable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/artem14133q","download_url":"https://codeload.github.com/artem14133q/mtable/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242750779,"owners_count":20179256,"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":["go","shell","table","terminal"],"created_at":"2024-11-16T17:27:28.953Z","updated_at":"2026-05-04T20:35:09.516Z","avatar_url":"https://github.com/artem14133q.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mtable\nConsole util for generate table from csv.\n\n### Go version:\n1.18\n\n### Usage\n```shell\nmtable [-t|--table-params TABLE_PARAMETERS] [-s|--sep SEPARATOR] [--compact] [--pure] [--non-ascii-box]\n```\n\n* **SEPARATOR**:\n    \n    Separator between parameters in line.\n    \n    Example: `...\\nA,B\\n...`\n    \n    Separator: `,`\n\n\n* **TABLE_PARAMETERS**:\n    \n    Parameters of table. Separator of table parameters - `,`\n    \n  * **numerate** - View indexes in first column. Value is a header.\n  \n    Example: `csv | mtable -t numerate=#`.\n  \n  * **headersColor** - Color of table headers (First raw).\n  \n    Default - `coral`.\n  \n    Example: `csv | mtable -t headersColor=#FFFFFF`\n  \n  * **rawsColor** - Color of table raw.\n  \n    Default - `sea green`.\n  \n    Example: `csv | mtable -t rawsColor=red`\n  \n  * **firstColColor** - Color of first table col.\n  \n    Default `sky blue`.\n\n    Example: `csv | mtable -t firstColColor=green`\n\n\n### Build\nFor Linux or macOS\n```shell\ngo build -o mtable \u0026\u0026 sudo chmod +x mtable\n```\n\n### Install\nFor Linux or macOS\n```shell\nsudo mv mtable /usr/local/bin/\n```\n\n### Examples\n```shell\necho \"Name,Args\\nJoan,20\\nBob,22\\nPetr,30\" | ./mtable\n```\n\u003c!--suppress CheckImageSize --\u003e\n\u003cimg src=\"img/2024-07-17_10.58.02.png\" height=\"150\" alt=\"Example 1\"\u003e\n\n```shell\necho \"Name,Args\\nJoan,20\\nBob,22\\nPetr,30\" | ./mtable --non-ascii-box\n```\n\u003c!--suppress CheckImageSize --\u003e\n\u003cimg src=\"img/2024-07-17_10.58.32.png\" height=\"140\" alt=\"Example 1\"\u003e\n\n```shell\necho \"Name,Args\\nJoan,20\\nBob,22\\nPetr,30\" | ./mtable --compact\n```\n\u003c!--suppress CheckImageSize --\u003e\n\u003cimg src=\"img/2024-07-17_10.59.02.png\" height=\"120\" alt=\"Example 1\"\u003e\n\n```shell\necho \"Name,Args\\nJoan,20\\nBob,22\\nPetr,30\" | ./mtable --pure\n```\n\u003c!--suppress CheckImageSize --\u003e\n\u003cimg src=\"img/2024-07-17_10.59.28.png\" height=\"150\" alt=\"Example 1\"\u003e\n\n```shell\necho \"Name,Args\\nJoan,20\\nBob,22\\nPetr,30\" | ./mtable -t \"numerate=#,headersColor=red,rawsColor=white,firstColColor=orange\"\n```\n\u003c!--suppress CheckImageSize --\u003e\n\u003cimg src=\"img/2024-07-17_11.03.56.png\" height=\"110\" alt=\"Example 1\"\u003e\n\n### Available colors\n\n| Name                      | RGB           |\n|---------------------------|---------------|\n| `maroon`                  | 128, 0, 0     |\n| `dark red`                | 139, 0, 0     |\n| `brown`                   | 165, 42, 42   |\n| `firebrick`               | 178, 34, 34   |\n| `crimson`                 | 220, 20, 60   |\n| `red`                     | 255, 0, 0     |\n| `tomato`                  | 255, 99, 71   |\n| `coral`                   | 255, 127, 80  |\n| `indian red`              | 205, 92, 92   |\n| `light coral`             | 240, 128, 128 |\n| `dark salmon`             | 233, 150, 122 |\n| `salmon`                  | 250, 128, 114 |\n| `light salmon`            | 255, 160, 122 |\n| `orange red`              | 255, 69, 0    |\n| `dark orange`             | 255, 140, 0   |\n| `orange`                  | 255, 165, 0   |\n| `gold`                    | 255, 215, 0   |\n| `dark golden rod`         | 184, 134, 11  |\n| `golden rod`              | 218, 165, 32  |\n| `pale golden rod`         | 238, 232, 170 |\n| `dark khaki`              | 189, 183, 107 |\n| `khaki`                   | 240, 230, 140 |\n| `olive`                   | 128, 128, 0   |\n| `yellow`                  | 255, 255, 0   |\n| `yellow green`            | 154, 205, 50  |\n| `dark olive green`        | 85, 107, 47   |\n| `olive drab`              | 107, 142, 35  |\n| `lawn green`              | 124, 252, 0   |\n| `chartreuse`              | 127, 255, 0   |\n| `green yellow`            | 173, 255, 47  |\n| `dark green`              | 0, 100, 0     |\n| `green`                   | 0, 128, 0     |\n| `forest green`            | 34, 139, 34   |\n| `lime`                    | 0, 255, 0     |\n| `lime green`              | 50, 205, 50   |\n| `light green`             | 144, 238, 144 |\n| `pale green`              | 152, 251, 152 |\n| `dark sea green`          | 143, 188, 143 |\n| `medium spring green`     | 0, 250, 154   |\n| `spring green`            | 0, 255, 127   |\n| `sea green`               | 46, 139, 87   |\n| `medium aqua marine`      | 102, 205, 170 |\n| `medium sea green`        | 60, 179, 113  |\n| `light sea green`         | 32, 178, 170  |\n| `dark slate gray`         | 47, 79, 79    |\n| `teal`                    | 0, 128, 128   |\n| `dark cyan`               | 0, 139, 139   |\n| `aqua`                    | 0, 255, 255   |\n| `cyan`                    | 0, 255, 255   |\n| `light cyan`              | 224, 255, 255 |\n| `dark turquoise`          | 0, 206, 209   |\n| `turquoise`               | 64, 224, 208  |\n| `medium turquoise`        | 72, 209, 204  |\n| `pale turquoise`          | 175, 238, 238 |\n| `aqua marine`             | 127, 255, 212 |\n| `powder blue`             | 176, 224, 230 |\n| `cadet blue`              | 95, 158, 160  |\n| `steel blue`              | 70, 130, 180  |\n| `corn flower blue`        | 100, 149, 237 |\n| `deep sky blue`           | 0, 191, 255   |\n| `dodger blue`             | 30, 144, 255  |\n| `light blue`              | 173, 216, 230 |\n| `sky blue`                | 135, 206, 235 |\n| `light sky blue`          | 135, 206, 250 |\n| `midnight blue`           | 25, 25, 112   |\n| `navy`                    | 0, 0, 128     |\n| `dark blue`               | 0, 0, 139     |\n| `medium blue`             | 0, 0, 205     |\n| `blue`                    | 0, 0, 255     |\n| `royal blue`              | 65, 105, 225  |\n| `blue violet`             | 138, 43, 226  |\n| `indigo`                  | 75, 0, 130    |\n| `dark slate blue`         | 72, 61, 139   |\n| `slate blue`              | 106, 90, 205  |\n| `medium slate blue`       | 123, 104, 238 |\n| `medium purple`           | 147, 112, 219 |\n| `dark magenta`            | 139, 0, 139   |\n| `dark violet`             | 148, 0, 211   |\n| `dark orchid`             | 153, 50, 204  |\n| `medium orchid`           | 186, 85, 211  |\n| `purple`                  | 128, 0, 128   |\n| `thistle`                 | 216, 191, 216 |\n| `plum`                    | 221, 160, 221 |\n| `violet`                  | 238, 130, 238 |\n| `fuchsia`                 | 255, 0, 255   |\n| `orchid`                  | 218, 112, 214 |\n| `medium violet red`       | 199, 21, 133  |\n| `pale violet red`         | 219, 112, 147 |\n| `deep pink`               | 255, 20, 147  |\n| `hot pink`                | 255, 105, 180 |\n| `light pink`              | 255, 182, 193 |\n| `pink`                    | 255, 192, 203 |\n| `antique white`           | 250, 235, 215 |\n| `beige`                   | 245, 245, 220 |\n| `bisque`                  | 255, 228, 196 |\n| `blanched almond`         | 255, 235, 205 |\n| `wheat`                   | 245, 222, 179 |\n| `corn silk`               | 255, 248, 220 |\n| `lemon chiffon`           | 255, 250, 205 |\n| `light golden rod yellow` | 250, 250, 210 |\n| `light yellow`            | 255, 255, 224 |\n| `saddle brown`            | 139, 69, 19   |\n| `sienna`                  | 160, 82, 45   |\n| `chocolate`               | 210, 105, 30  |\n| `peru`                    | 205, 133, 63  |\n| `sandy brown`             | 244, 164, 96  |\n| `burly wood`              | 222, 184, 135 |\n| `tan`                     | 210, 180, 140 |\n| `rosy brown`              | 188, 143, 143 |\n| `moccasin`                | 255, 228, 181 |\n| `navajo white`            | 255, 222, 173 |\n| `peach puff`              | 255, 218, 185 |\n| `misty rose`              | 255, 228, 225 |\n| `lavender blush`          | 255, 240, 245 |\n| `linen`                   | 250, 240, 230 |\n| `old lace`                | 253, 245, 230 |\n| `papaya whip`             | 255, 239, 213 |\n| `sea shell`               | 255, 245, 238 |\n| `mint cream`              | 245, 255, 250 |\n| `slate gray`              | 112, 128, 144 |\n| `light slate gray`        | 119, 136, 153 |\n| `light steel blue`        | 176, 196, 222 |\n| `lavender`                | 230, 230, 250 |\n| `floral white`            | 255, 250, 240 |\n| `alice blue`              | 240, 248, 255 |\n| `ghost white`             | 248, 248, 255 |\n| `honeydew`                | 240, 255, 240 |\n| `ivory`                   | 255, 255, 240 |\n| `azure`                   | 240, 255, 255 |\n| `snow`                    | 255, 250, 250 |\n| `black`                   | 0, 0, 0       |\n| `dim grey`                | 105, 105, 105 |\n| `grey`                    | 128, 128, 128 |\n| `dark grey`               | 169, 169, 169 |\n| `silver`                  | 192, 192, 192 |\n| `light grey`              | 211, 211, 211 |\n| `gainsboro`               | 220, 220, 220 |\n| `white smoke`             | 245, 245, 245 |\n| `white`                   | 255, 255, 255 |\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartem14133q%2Fmtable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fartem14133q%2Fmtable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartem14133q%2Fmtable/lists"}