{"id":23222727,"url":"https://github.com/pmunch/termstyle","last_synced_at":"2025-04-05T16:29:00.242Z","repository":{"id":28761921,"uuid":"119261683","full_name":"PMunch/termstyle","owner":"PMunch","description":"Easy to use styles for terminal output","archived":false,"fork":false,"pushed_at":"2022-02-21T23:49:55.000Z","size":2,"stargazers_count":30,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-11T13:25:05.752Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Nim","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PMunch.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-28T13:41:14.000Z","updated_at":"2025-01-16T18:55:43.000Z","dependencies_parsed_at":"2022-08-02T11:55:12.347Z","dependency_job_id":null,"html_url":"https://github.com/PMunch/termstyle","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/PMunch%2Ftermstyle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PMunch%2Ftermstyle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PMunch%2Ftermstyle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PMunch%2Ftermstyle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PMunch","download_url":"https://codeload.github.com/PMunch/termstyle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247364770,"owners_count":20927195,"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":[],"created_at":"2024-12-18T23:14:08.644Z","updated_at":"2025-04-05T16:29:00.219Z","avatar_url":"https://github.com/PMunch.png","language":"Nim","funding_links":[],"categories":[],"sub_categories":[],"readme":"termstyle\n===========\nThis module is created to bring extremely easy to use terminal colours and styles.\nThe official terminal module also does this but requires you to use calls like\n``setStyle`` which clutters your input. This module on the other hand just defines\nsimple, single-word procedures that applies styles to everything that follows.\nThe most simple example is a regular ``echo`` statement for logging. To style it\nwith a red text colour simply do:\n::\n  echo red \"mystring\"\nThis allows you to easily drop it into any echo statement without trouble.\nSimilarily to an echo it also takes varargs, so this would also work:\n::\n  echo red(\"mystring\", 42)\nIt even converts the integer to a string when concatenating just like echo does!\nIf you want to have multiple colours on a single line you can use multiple of\nthem and the ``echo`` varargs system:\n::\n  echo red \"This is blue: \", blue 42\nIn case you want to add more styles and don't want to chain them you can of\ncourse also use the ``style`` procedure and combine the various styles:\n::\n  echo style(\"mystring\", termRed \u0026 termBlink)\n\nThis file is automatically generated from the documentation found in\ntermstyle.nim. Use ``nim doc2 termstyle.nim`` to get the full documentation.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmunch%2Ftermstyle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpmunch%2Ftermstyle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmunch%2Ftermstyle/lists"}