{"id":21937365,"url":"https://github.com/jasondrawdy/confetti","last_synced_at":"2026-05-06T12:33:39.433Z","repository":{"id":183138429,"uuid":"141952189","full_name":"jasondrawdy/Confetti","owner":"jasondrawdy","description":" A simple console stylizing library for .NET applications which boasts various styles and allows the coloration of individual components of the console itself.","archived":false,"fork":false,"pushed_at":"2020-05-01T21:11:55.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-01-27T13:48:13.713Z","etag":null,"topics":["color","colorful","colorization","console","converter","dotnet","encoding","library","logging","logging-library","styles","windows"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jasondrawdy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2018-07-23T02:41:42.000Z","updated_at":"2020-05-01T21:11:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"cbbcec42-3777-4605-8585-7a83e090cafc","html_url":"https://github.com/jasondrawdy/Confetti","commit_stats":null,"previous_names":["jasondrawdy/confetti"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasondrawdy%2FConfetti","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasondrawdy%2FConfetti/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasondrawdy%2FConfetti/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasondrawdy%2FConfetti/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jasondrawdy","download_url":"https://codeload.github.com/jasondrawdy/Confetti/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244967535,"owners_count":20539971,"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","colorful","colorization","console","converter","dotnet","encoding","library","logging","logging-library","styles","windows"],"created_at":"2024-11-29T01:19:16.286Z","updated_at":"2026-05-06T12:33:34.399Z","avatar_url":"https://github.com/jasondrawdy.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003cimg width=\"256\" height=\"256\" src=\"https://user-images.githubusercontent.com/40871836/43488412-47349f72-94df-11e8-9b1c-bb5f1ac1870d.png\"\u003e\n\u003c/p\u003e\n\n# Confetti\n\u003cp align=\"left\"\u003e\n    \u003c!-- Version --\u003e\n    \u003cimg src=\"https://img.shields.io/badge/version-1.0.0-brightgreen.svg\"\u003e\n    \u003c!-- Docs --\u003e\n    \u003cimg src=\"https://img.shields.io/badge/docs-not%20found-lightgrey.svg\"\u003e\n    \u003c!-- License --\u003e\n    \u003cimg src=\"https://img.shields.io/badge/license-MIT-blue.svg\"\u003e\n\u003c/p\u003e\n\nA simple console stylizing library for .NET applications which boasts various styles and allows the coloration of individual components of the console itself. Messages can be printed with or without color as well as other settings such as timestamps and entire line formatting. The library also comes with some baseline extension methods such as converting strings to byte arrays, byte arrays to strings, and Base64 conversions for char arrays, strings, and byte arrays.\n\n### Requirements\n- .NET Framework 4.6.1\n\n# Features\n- Stylize the default console using multiple style types\n    - **General** *(Grey)*\n    - **Notice** *(Cyan)*\n    - **Success** *(Green)*\n    - **Warning** *(Yellow)*\n    - **Error** *(Red)*\n    - **None** *(No formatting)*\n- Encoding output using different encoding styles\n    - **Default**\n    - **ASCII**\n    - **UTF7**\n    - **UTF8**\n    - **UTF32**\n    - **Unicode**\n    - **BigEndianUnicode**\n- Colorize the entire line of console output\n- Provide timestamps with console output\n\n# Examples\nThis example shows how to stylize the console using Confetti and some its features such has full row colorization, timestamping, and some of the general use cases for the provided extension methods.\n\n```c#\nusing System;\nusing Confetti;\n\nnamespace Example\n{\n    class Program\n    {\n        public static void Main(string[] args)\n        {\n            // Print to console using a timestamp.\n            ColorConsole.Print(\"This message has a timestamp!\", true, false, Styles.MessageStyle.Notice);\n\n            // Print to console using a timestamp and color the entire line.\n            ColorConsole.Print(\"This message has a timestamp and the entire line is colored!\\n\", true, true, Styles.MessageStyle.Notice);\n\n            // Print to the console using various styles while coloring the entire line.\n            ColorConsole.Print(\"[-] This message has no formatting.\", false, true, Styles.MessageStyle.None);\n            ColorConsole.Print(\"[-] This is a General message with line coloring.\", false, true, Styles.MessageStyle.General);\n            ColorConsole.Print(\"[=] This is a Notice message with line coloring.\", false, true, Styles.MessageStyle.Notice);\n            ColorConsole.Print(\"[+] This is a Success message with line coloring.\", false, true, Styles.MessageStyle.Success);\n            ColorConsole.Print(\"[!] This is a Warning message with line coloring.\", false, true, Styles.MessageStyle.Warning);\n            ColorConsole.Print(\"[x] This is a Error message with line coloring.\\n\", false, true, Styles.MessageStyle.Error);\n\n            // Print to the console using various styles.\n            ColorConsole.Print(\"[-] This message has no formatting.\", false, false, Styles.MessageStyle.None);\n            ColorConsole.Print(\"[-] This is a General message.\", false, false, Styles.MessageStyle.General);\n            ColorConsole.Print(\"[=] This is a Notice message.\", false, false, Styles.MessageStyle.Notice);\n            ColorConsole.Print(\"[+] This is a Success message.\", false, false, Styles.MessageStyle.Success);\n            ColorConsole.Print(\"[!] This is a Warning message.\", false, false, Styles.MessageStyle.Warning);\n            ColorConsole.Print(\"[x] This is a Error message.\\n\", false, false, Styles.MessageStyle.Error);\n\n            // Some basic conversions using the utils class.\n            var message = \"Hello, World!\";\n\n            // Encode our string as a Base64 string.\n            var base64String = Utils.ToBase64(message);\n\n            // Get the bytes of the string using various encoding styles.\n            var encodedBytes = Utils.GetBytes(base64String, Styles.EncodingStyle.BigEndianUnicode);\n\n            // Get the string of our encoded bytes and print it to the console.\n            var decodedBytes = Utils.GetString(encodedBytes);\n            ColorConsole.Print(decodedBytes, true, true, Styles.MessageStyle.Success);\n\n            // Wait for user interaction.\n            Console.Read();\n        }\n    }\n}\n```\n\n# Credits\n**Icon:** `Pixel Buddha`\n\u003cbr\u003ehttps://www.flaticon.com/authors/pixel-buddha\n\n# License\n\nCopyright © ∞ Jason Drawdy \n\nAll rights reserved.\n\nThe MIT License (MIT)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\nExcept as contained in this notice, the name of the above copyright holder\nshall not be used in advertising or otherwise to promote the sale, use or\nother dealings in this Software without prior written authorization.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasondrawdy%2Fconfetti","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjasondrawdy%2Fconfetti","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasondrawdy%2Fconfetti/lists"}