{"id":13704917,"url":"https://github.com/EvotecIT/PSWriteColor","last_synced_at":"2025-05-05T12:32:40.020Z","repository":{"id":95331783,"uuid":"130350840","full_name":"EvotecIT/PSWriteColor","owner":"EvotecIT","description":"Write-Color is a wrapper around Write-Host allowing you to create nice looking scripts, with colorized output.","archived":false,"fork":false,"pushed_at":"2023-04-30T17:36:57.000Z","size":87,"stargazers_count":169,"open_issues_count":4,"forks_count":28,"subscribers_count":11,"default_branch":"master","last_synced_at":"2024-10-29T21:06:12.481Z","etag":null,"topics":["color","hacktoberfest","powershell","wrapper","write-color","write-host","write-output"],"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/EvotecIT.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null},"funding":{"github":"PrzemyslawKlys","custom":["https://paypal.me/PrzemyslawKlys"]}},"created_at":"2018-04-20T11:03:21.000Z","updated_at":"2024-10-23T12:45:05.000Z","dependencies_parsed_at":"2023-05-09T15:30:57.928Z","dependency_job_id":null,"html_url":"https://github.com/EvotecIT/PSWriteColor","commit_stats":{"total_commits":72,"total_committers":3,"mean_commits":24.0,"dds":0.5138888888888888,"last_synced_commit":"5941ee380367693bcd52dfe269f63ed4120df900"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvotecIT%2FPSWriteColor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvotecIT%2FPSWriteColor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvotecIT%2FPSWriteColor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvotecIT%2FPSWriteColor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EvotecIT","download_url":"https://codeload.github.com/EvotecIT/PSWriteColor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224448788,"owners_count":17313118,"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":["color","hacktoberfest","powershell","wrapper","write-color","write-host","write-output"],"created_at":"2024-08-02T22:00:25.915Z","updated_at":"2025-05-05T12:32:40.014Z","avatar_url":"https://github.com/EvotecIT.png","language":"PowerShell","funding_links":["https://github.com/sponsors/PrzemyslawKlys","https://paypal.me/PrzemyslawKlys"],"categories":["📚 UI","PowerShell","UI"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.powershellgallery.com/packages/PSWriteColor\"\u003e\u003cimg src=\"https://img.shields.io/powershellgallery/v/PSWriteColor.svg\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.powershellgallery.com/packages/PSWriteColor\"\u003e\u003cimg src=\"https://img.shields.io/powershellgallery/vpre/PSWriteColor.svg?label=powershell%20gallery%20preview\u0026colorB=yellow\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/EvotecIT/PSWriteColor\"\u003e\u003cimg src=\"https://img.shields.io/github/license/EvotecIT/PSWriteColor.svg\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.powershellgallery.com/packages/PSWriteColor\"\u003e\u003cimg src=\"https://img.shields.io/powershellgallery/p/PSWriteColor.svg\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/EvotecIT/PSWriteColor\"\u003e\u003cimg src=\"https://img.shields.io/github/languages/top/evotecit/PSWriteColor.svg\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/EvotecIT/PSWriteColor\"\u003e\u003cimg src=\"https://img.shields.io/github/languages/code-size/evotecit/PSWriteColor.svg\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.powershellgallery.com/packages/PSWriteColor\"\u003e\u003cimg src=\"https://img.shields.io/powershellgallery/dt/PSWriteColor.svg\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://twitter.com/PrzemyslawKlys\"\u003e\u003cimg src=\"https://img.shields.io/twitter/follow/PrzemyslawKlys.svg?label=Twitter%20%40PrzemyslawKlys\u0026style=social\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://evotec.xyz/hub\"\u003e\u003cimg src=\"https://img.shields.io/badge/Blog-evotec.xyz-2A6496.svg\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.linkedin.com/in/pklys\"\u003e\u003cimg src=\"https://img.shields.io/badge/LinkedIn-pklys-0077B5.svg?logo=LinkedIn\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n# PSWriteColor - PowerShell module\n\nWrite-Color is a wrapper around Write-Host allowing you to create nice looking scripts, with colorized output.\nMore information for this project at my [Evotec website](https://evotec.xyz/hub/scripts/pswritecolor/).\n\n## Support This Project\n\nIf you find this project helpful, please consider supporting its development.\nYour sponsorship will help the maintainers dedicate more time to maintenance and new feature development for everyone.\n\nIt takes a lot of time and effort to create and maintain this project.\nBy becoming a sponsor, you can help ensure that it stays free and accessible to everyone who needs it.\n\nTo become a sponsor, you can choose from the following options:\n\n - [Become a sponsor via GitHub Sponsors :heart:](https://github.com/sponsors/PrzemyslawKlys)\n - [Become a sponsor via PayPal :heart:](https://paypal.me/PrzemyslawKlys)\n\nYour sponsorship is completely optional and not required for using this project.\nWe want this project to remain open-source and available for anyone to use for free,\nregardless of whether they choose to sponsor it or not.\n\nIf you work for a company that uses our .NET libraries or PowerShell Modules,\nplease consider asking your manager or marketing team if your company would be interested in supporting this project.\nYour company's support can help us continue to maintain and improve this project for the benefit of everyone.\n\nThank you for considering supporting this project!\n\n## ChangeLog\n\n- 1.0.3 - 2025.04.21\n  - 📃 Improves `HorizontalCenter` by AU-Mark\n- 1.0.2 - 2025.04.21\n  - 📃 Added `HorizontalCenter` by AU-Mark\n- 1.0.1 - 2023.04.30\n  - 🐛 Fixes UTF8 issue when publishing to PowerShell Gallery\n- 1.0.0 - 2023.04.23\n  - 📃 Converted tabs to spaces in code (no difference in output)\n  - 📃 Updated documentation\n  - 💡 Added `NoConsoleOutput` to allow only writting to file, and skipping console output\n  - 🐛 Removed throwing exceptions when couldn't write to file (`Write-Warning` will be triggered instead)\n- 0.87.3 - 2021.04.12\n  - 💡 Disabled `WhatIf` functionality for Out-File which would prevent logging to file\n  - 💡 Added `LogRetry` (2) to provide option to retry logging to file up to X number of times in case issue with saving to file occurs (race condition)\n- 0.87.2 - 2020.07.20\n  - 📦 Added a space for LogTime and ShowTime\n  - 📦 Signed module\n- 0.87.1 - 2020.06.19\n  - 🐛 Resolves issue with nuget download (changed version from 0.87 to 0.87.1). As per [link](https://devblogs.microsoft.com/devops/versioning-nuget-packages-cd-1/) it requires version to be longer.\n- 0.87.0 - 2020.01.12\n  - 🐛 Throw errors when can't save to file with LogFile. Before it would use Write-Output which could deliver unpredictable results\n\n# Quick install\n\n```powershell\nInstall-Module -Name \"PSWriteColor\" -Force\n```\n\n# Examples\n\n![Image](https://evotec.xyz/wp-content/uploads/2018/05/img_5af07118e9f87.png)\n\n```powershell\n# Example 1\nWrite-Color \"[i] \", \"Parameter in configuration of \", \"EmailParameters.EmailFrom\", \" exists.\" -Color White, White, Green, White -ShowTime\nWrite-Color \"[i] \", \"Parameter in configuration of \", \"EmailParameters.EmailTo\", \" exists.\" -Color White, White, Green, White -ShowTime\n```\n\n```powershell\n# Example 2\nWrite-Color \"[i] \", \"I will send email soon...\", \"Get ready..\" -Color White\nWrite-Color \"[i] \", \"Sending email....\" -Color White, White -NoNewLine\n\u003c#\n    Do Something....\n#\u003e\nif ($true) {\n    Write-Color -Text \"OK\" -Color Green\n}\n```\n\n```powershell\n# Example 3\nWrite-Color -Text \"Red \", \"Green \", \"Yellow \" -Color Red, Green, Yellow\nWrite-Color -Text \"This is text in Green \",\n\"followed by red \",\n\"and then we have Magenta... \",\n\"isn't it fun? \",\n\"Here goes DarkCyan\" -Color Green, Red, Magenta, White, DarkCyan\nWrite-Color -Text \"This is text in Green \",\n\"followed by red \",\n\"and then we have Magenta... \",\n\"isn't it fun? \",\n\"Here goes DarkCyan\" -Color Green, Red, Magenta, White, DarkCyan -StartTab 3 -LinesBefore 1 -LinesAfter 1\nWrite-Color \"1. \", \"Option 1\" -Color Yellow, Green\nWrite-Color \"2. \", \"Option 2\" -Color Yellow, Green\nWrite-Color \"3. \", \"Option 3\" -Color Yellow, Green\nWrite-Color \"4. \", \"Option 4\" -Color Yellow, Green\nWrite-Color \"9. \", \"Press 9 to exit\" -Color Yellow, Gray -LinesBefore 1\nWrite-Color -LinesBefore 2 -Text \"This little \", \"message is \", \"written to log \", \"file as well.\" `\n        -Color Yellow, White, Green, Red, Red -LogFile \"C:\\testing.txt\" -TimeFormat \"yyyy-MM-dd HH:mm:ss\"\nWrite-Color -Text \"This can get \", \"handy if \", \"want to display things, and log actions to file \", \"at the same time.\" `\n        -Color Yellow, White, Green, Red, Red -LogFile \"C:\\testing.txt\"\n```\n\n```powershell\n# Example 4 with backgrund colors and usage of aliases\nWrite-Color -T \"My text\", \" is \", \"all colorful\" -C Yellow, Red, Green -B Green, Green, Yellow\nWrite-Color -T \"My text\", \" is \", \"all colorful\" -C Yellow, Red, Green -B Red, Green, Green\n# Example 5 with aliases\nwc -t \"my text\" -C Red\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FEvotecIT%2FPSWriteColor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FEvotecIT%2FPSWriteColor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FEvotecIT%2FPSWriteColor/lists"}