{"id":15792870,"url":"https://github.com/evaneykelen/colrou","last_synced_at":"2025-03-14T14:30:44.205Z","repository":{"id":62556034,"uuid":"174714419","full_name":"evaneykelen/colrou","owner":"evaneykelen","description":"Colorize `rails routes` output and insert line breaks between controllers","archived":false,"fork":false,"pushed_at":"2020-07-28T08:14:58.000Z","size":11,"stargazers_count":6,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2024-10-11T23:19:27.444Z","etag":null,"topics":["rails","routes","ruby"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/evaneykelen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-09T15:55:39.000Z","updated_at":"2020-07-28T08:04:27.000Z","dependencies_parsed_at":"2022-11-03T05:45:36.802Z","dependency_job_id":null,"html_url":"https://github.com/evaneykelen/colrou","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evaneykelen%2Fcolrou","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evaneykelen%2Fcolrou/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evaneykelen%2Fcolrou/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evaneykelen%2Fcolrou/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/evaneykelen","download_url":"https://codeload.github.com/evaneykelen/colrou/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243593211,"owners_count":20316149,"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":["rails","routes","ruby"],"created_at":"2024-10-04T23:06:09.247Z","updated_at":"2025-03-14T14:30:43.742Z","avatar_url":"https://github.com/evaneykelen.png","language":"Ruby","readme":"![Gem Version](https://img.shields.io/gem/v/colrou.svg) ![License](https://img.shields.io/github/license/evaneykelen/colrou.svg)\n![Last Commit](https://img.shields.io/github/last-commit/evaneykelen/colrou.svg)\n\n# Colrou\n\nColrou reformats output of `rails routes`. The name is a portmanteau of \"colorized routes\".\n\n## Example\n\n![Example](https://user-images.githubusercontent.com/11846/54473866-ccc02600-47dd-11e9-9093-8ba1d9fe7d44.png)\n\n## Installation\n\n`gem install colrou`\n\nThe `colrou` command operates on the output of the `rails routes` command.\n\nIt performs two operations:\n\n- HTTP verbs and path parameters are colorized\n- Line breaks are inserted between controllers\n\n## Usage examples\n\n`$ rails routes | colrou`\n\n`$ rails routes -g posts | colrou`\n\n\n## Color configuration\n\nPlace a file called `.colrou.yml` in your home directory (e.g. `~` on Unix) to configure output colors:\n\n```\nhttp_verb_colors:\n  delete: \"\\e[91m\"\n  get: \"\\e[92m\"\n  patch: \"\\e[95m\"\n  post: \"\\e[93m\"\n  put: \"\\e[95m\"\nmisc_colors:\n  reset: \"\\e[0m\"\n  param: \"\\e[96m\"\n```\n\nSee [here](https://misc.flogisoft.com/bash/tip_colors_and_formatting) for a nice overview of shell color codes.\n\n## Tip\n\nAdd the following lines to e.g. `~/.bash_profile` (the location depends on your shell and OS):\n\n```\nalias rr='rails routes'\nalias cr='colrou'\n```\n\nYou now only have to type `$ rr | cr` to colorize your routes.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevaneykelen%2Fcolrou","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevaneykelen%2Fcolrou","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevaneykelen%2Fcolrou/lists"}