{"id":22561797,"url":"https://github.com/aminnairi/markdown-table-align","last_synced_at":"2025-09-03T15:42:08.781Z","repository":{"id":265726437,"uuid":"896557868","full_name":"aminnairi/markdown-table-align","owner":"aminnairi","description":"Align your markdown table","archived":false,"fork":false,"pushed_at":"2024-12-01T08:26:08.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"development","last_synced_at":"2025-07-25T08:53:32.645Z","etag":null,"topics":["align","markdown","table"],"latest_commit_sha":null,"homepage":"https://jsr.io/@aminnairi/markdown-table-align","language":"TypeScript","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/aminnairi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-30T17:22:26.000Z","updated_at":"2024-12-01T08:26:12.000Z","dependencies_parsed_at":"2025-03-28T12:41:42.979Z","dependency_job_id":"ff7c88db-a37c-4684-a5f9-fe8d420dc7b7","html_url":"https://github.com/aminnairi/markdown-table-align","commit_stats":null,"previous_names":["aminnairi/markdown-table-align"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/aminnairi/markdown-table-align","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aminnairi%2Fmarkdown-table-align","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aminnairi%2Fmarkdown-table-align/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aminnairi%2Fmarkdown-table-align/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aminnairi%2Fmarkdown-table-align/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aminnairi","download_url":"https://codeload.github.com/aminnairi/markdown-table-align/tar.gz/refs/heads/development","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aminnairi%2Fmarkdown-table-align/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273467579,"owners_count":25111130,"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","status":"online","status_checked_at":"2025-09-03T02:00:09.631Z","response_time":76,"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":["align","markdown","table"],"created_at":"2024-12-07T22:10:07.371Z","updated_at":"2025-09-03T15:42:08.755Z","avatar_url":"https://github.com/aminnairi.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# markdown-table-align\n\nAlign your markdown table\n\n## Requirements\n\n- [Deno](https://deno.com/)\n- [Git](https://git-scm.com/) (for local binary compilation)\n- [Bash](https://www.gnu.org/software/bash/), or [Zsh](https://www.zsh.org/), or [Fish](https://fishshell.com/), or any GNU/Linux shell (for usage with a binary)\n\n## Installation\n\n### With Deno\n\n```bash\ndeno run jsr:@aminnairi/markdown-table-align example.md\ncat example.md | deno run jsr:@aminnairi/markdown-table-align\n```\n\n### With compilation\n\n```bash\n# Clone the repository\ngit clone https://github.com/aminnairi/markdown-table-align\n# Change the current directory\ncd markdown-table-align\n# Compile the binary\ndeno compile --allow-read --output ~/.local/bin index.ts\n# Run the compiled binary\nmarkdown-table-align example.md\n```\n\nWhere `~/.local/bin` is the folder containing your binaries.\n\n## Usage\n\n### Command line interface\n\n#### With argument\n\n```bash\ncat example.md\n```\n\n```text\n| ID | Name | Category ID |\n| 11092 | Gorilla Fist | 27 |\n| 11212 | Plate 3 x 3 | 14 |\n| 11209 | Tyre 21 x 9.9 | 29 |\n| 11640pr0003 | ELECTRIC GUITAR SHAFT Ø3.2 NO. 3 | 27 |\n```\n\n```bash\nmarkdown-table-align example.md\n```\n\n```\nID          | Name                             | Category ID\n----------- | -------------------------------- | -----------\n11092       | Gorilla Fist                     | 27         \n11212       | Plate 3 x 3                      | 14         \n11209       | Tyre 21 x 9.9                    | 29         \n11640pr0003 | ELECTRIC GUITAR SHAFT Ø3.2 NO. 3 | 27\n```\n\n#### With pipe\n\n```bash\ncat example.md\n```\n\n```text\n| ID | Name | Category ID |\n| 11092 | Gorilla Fist | 27 |\n| 11212 | Plate 3 x 3 | 14 |\n| 11209 | Tyre 21 x 9.9 | 29 |\n| 11640pr0003 | ELECTRIC GUITAR SHAFT Ø3.2 NO. 3 | 27 |\n```\n\n\n```bash\ncat example.md | markdown-table-align\n```\n\n```\nID          | Name                             | Category ID\n----------- | -------------------------------- | -----------\n11092       | Gorilla Fist                     | 27         \n11212       | Plate 3 x 3                      | 14         \n11209       | Tyre 21 x 9.9                    | 29         \n11640pr0003 | ELECTRIC GUITAR SHAFT Ø3.2 NO. 3 | 27\n```\n\n## Library\n\n```bash\ndeno add jsr:@aminnairi/markdown-table-align\n```\n\n```typescript\nimport { alignMarkdownTable } from \"@aminnairi/markdow-table-align\"\n\nconst separator = \"|\"\n\nconst content = `\n| ID | Name | Category ID |\n| 11092 | Gorilla Fist | 27 |\n| 11212 | Plate 3 x 3 | 14 |\n| 11209 | Tyre 21 x 9.9 | 29 |\n| 11640pr0003 | ELECTRIC GUITAR SHAFT Ø3.2 NO. 3 | 27 |\n`\n\nconst aligned = alignMarkdownTable(separator, content)\n\nconsole.log(aligned)\n```\n\n```\nID          | Name                             | Category ID\n----------- | -------------------------------- | -----------\n11092       | Gorilla Fist                     | 27         \n11212       | Plate 3 x 3                      | 14         \n11209       | Tyre 21 x 9.9                    | 29         \n11640pr0003 | ELECTRIC GUITAR SHAFT Ø3.2 NO. 3 | 27\n```\n\n## License\n\nSee [`LICENSE`](./LICENSE).\n\n## Contributing\n\nSee [`CONTRIBUTING.md`](./CONTRIBUTING.md).\n\n## Security Policy\n\nSee [`SECURITY.md`](./SECURITY.md).\n\n## Issue\n\nSee [`issues`](./issues).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faminnairi%2Fmarkdown-table-align","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faminnairi%2Fmarkdown-table-align","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faminnairi%2Fmarkdown-table-align/lists"}