{"id":13549574,"url":"https://github.com/iamsalnikov/colorize","last_synced_at":"2026-02-22T01:38:59.591Z","repository":{"id":22481922,"uuid":"25821063","full_name":"iamsalnikov/colorize","owner":"iamsalnikov","description":null,"archived":false,"fork":false,"pushed_at":"2023-06-29T22:16:32.000Z","size":20,"stargazers_count":24,"open_issues_count":6,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-23T08:31:36.262Z","etag":null,"topics":["cli","console","dart"],"latest_commit_sha":null,"homepage":"https://pub.dartlang.org/packages/colorize","language":"Dart","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/iamsalnikov.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,"roadmap":null,"authors":null}},"created_at":"2014-10-27T13:46:04.000Z","updated_at":"2025-07-29T02:17:53.000Z","dependencies_parsed_at":"2024-01-16T19:02:02.536Z","dependency_job_id":null,"html_url":"https://github.com/iamsalnikov/colorize","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/iamsalnikov/colorize","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamsalnikov%2Fcolorize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamsalnikov%2Fcolorize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamsalnikov%2Fcolorize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamsalnikov%2Fcolorize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iamsalnikov","download_url":"https://codeload.github.com/iamsalnikov/colorize/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamsalnikov%2Fcolorize/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29703227,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T23:35:04.139Z","status":"ssl_error","status_checked_at":"2026-02-21T23:35:03.832Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cli","console","dart"],"created_at":"2024-08-01T12:01:23.150Z","updated_at":"2026-02-22T01:38:59.575Z","avatar_url":"https://github.com/iamsalnikov.png","language":"Dart","funding_links":[],"categories":["Dart"],"sub_categories":[],"readme":"# Colorize\n\nColorize console output in dart console apps!\n\n![](http://i.imgur.com/BaxDbw9.png)\n\n## Install\n\nAdd dependency to your `pubspec.yaml`:\n\n```yaml\ncolorize: any\n```\n\nRun\n\n```bash\npub get\n```\n\n## Usage\n\nImport package:\n\n```dart\nimport 'package:colorize/colorize.dart';\n```\n\nYou have two way to colorize your string:\n\n* use class `Colorize`\n* use top-level function `color()`\n\n### Use `Colorize`\n\nFor colorize string with `Colorize` class you should create object of type `Colorize`:\n\n```dart\nColorize string = new Colorize(\"This is my string!\");\n```\n\nThen you can call methods of `Colorize`.\n\n**Text color**\n\n* default()\n* black()\n* red()\n* green()\n* yellow()\n* blue()\n* magenta()\n* cyan()\n* lightGray()\n* darkGray()\n* lightRed()\n* lightGreen()\n* lightYellow()\n* lightBlue()\n* lightMagenta()\n* lightCyan()\n* white()\n\n**Background color**\n\n* bgDefault()\n* bgBlack()\n* bgRed()\n* bgGreen()\n* bgYellow()\n* bgBlue()\n* bgMagenta()\n* bgCyan()\n* bgLightGray()\n* bgDarkGray()\n* bgLightRed()\n* bgLightGreen()\n* bgLightYellow()\n* bgLightBlue()\n* bgLightMagenta()\n* bgLightCyan()\n* bgWhite()\n\n**Formatting**\n\n* reset()\n* bold()\n* dark()\n* italic()\n* underline()\n* blink()\n* reverse()\n* concealed()\n\nAfter apply styles to string you can print it to console:\n\n```dart\nprint(string);\n```\n\n### Use top-level function `color()`\n\nTop-level function `color` apply one required parameter - `String text`. It is text, that would be print\non console.\n\nAlso top-level function `color` has seven named parameters:\n\n* `Styles front` - name of front color (you can also use the constants of class `Styles`). Default value is `''`.\n* `Styles back`: name of background color (you can also use the constants of class `Styles`). Default value is `''`.\n* `bool isUnderline` - default value is `false`.\n* `bool isBold` - default value is `false`.\n* `bool isDark` - default value is `false`.\n* `bool isItalic` - default value is `false`.\n* `bool isReverse` - default value is `false`.\n\n**Example of usage**\n\n```dart\ncolor(\"Bold Italic Underline\", front: Styles.RED, isBold: true, isItalic: true, isUnderline: true);\n```\n\n### Enum `Styles`\n\nEnum `Styles` contains all styles which you can pass to Colorize.applyState method;","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamsalnikov%2Fcolorize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiamsalnikov%2Fcolorize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamsalnikov%2Fcolorize/lists"}