{"id":20282914,"url":"https://github.com/enough-software/enough_ascii_art","last_synced_at":"2025-04-11T08:20:46.347Z","repository":{"id":56828439,"uuid":"252101930","full_name":"Enough-Software/enough_ascii_art","owner":"Enough-Software","description":"ASCII art library written in pure Dart.","archived":false,"fork":false,"pushed_at":"2023-02-06T10:32:26.000Z","size":572,"stargazers_count":17,"open_issues_count":5,"forks_count":10,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-25T05:51:15.449Z","etag":null,"topics":["ascii-art","ascii-graphics","dart","dartlang","figlet"],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Enough-Software.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-01T07:22:46.000Z","updated_at":"2024-11-20T09:45:22.000Z","dependencies_parsed_at":"2022-08-29T02:41:00.306Z","dependency_job_id":null,"html_url":"https://github.com/Enough-Software/enough_ascii_art","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Enough-Software%2Fenough_ascii_art","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Enough-Software%2Fenough_ascii_art/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Enough-Software%2Fenough_ascii_art/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Enough-Software%2Fenough_ascii_art/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Enough-Software","download_url":"https://codeload.github.com/Enough-Software/enough_ascii_art/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248360863,"owners_count":21090773,"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":["ascii-art","ascii-graphics","dart","dartlang","figlet"],"created_at":"2024-11-14T14:12:30.196Z","updated_at":"2025-04-11T08:20:46.331Z","avatar_url":"https://github.com/Enough-Software.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"An ASCII art library for Dart developers.\n\nAvailable under the commercial friendly \n[MPL Mozilla License 2.0](https://www.mozilla.org/en-US/MPL/).\n\n## Usage\n\nThings you can do with `enough_ascii_art`:\n* Generate a textual representation of an image using `convertImage(..)`.\n* Create [FIGlet](https://en.wikipedia.org/wiki/FIGlet) text banners with `renderFiglet(..)`. \n* Convert ASCII text into UTF-8 \"fonts\" like 𝕕𝕠𝕦𝕓𝕝𝕖 𝕤𝕥𝕣𝕦𝕔𝕜 with `renderUnicode(..)`.\n* Convert common UTF-8 emoticons to their text-representation with `convertEmoticons(..)`.\n\n\nUsage example:\n\n```dart\nimport 'dart:io';\nimport 'package:enough_ascii_art/enough_ascii_art.dart' as art;\nimport 'package:image/image.dart' as img;\n\nvoid main() async {\n  final bytes = await File('./example/enough.jpg').readAsBytes();\n  final image = img.decodeImage(bytes)!;\n  var asciiImage = art.convertImage(image, maxWidth: 40, invert: true);\n  print('');\n  print(asciiImage);\n\n  var helloWithUtf8Smileys = 'hello world 😛';\n  var helloWithTextSmileys =\n      art.convertEmoticons(helloWithUtf8Smileys, art.EmoticonStyle.western);\n  print('');\n  print(helloWithTextSmileys);\n  print('');\n\n  print('cosmic:');\n  var fontText = await File('./example/cosmic.flf').readAsString();\n  var figure = art.renderFiglet('ENOUGH', art.Font.text(fontText));\n  print(figure);\n  print('');\n\n  var unicode = art.renderUnicode('hello world', art.UnicodeFont.doublestruck);\n  print('double struck:');\n  print(unicode);\n}\n```\n\nThe above code renders the following output:\n\n```\n%%%%%%%%%%%%%%%%%%@%@%#%#%%%%%%%%%%%%%%%\n%%%%%%%%%%%%%%%%%%##      -@%%%%%%%%%%%%\n%%%%%%%%%%%%%%%%%%.        .#%%%%%%%%%%%\n%%%%%%%%%%%%%%%%%#          #%%%%%%%%%%%\n%%%%%%%%%%%%%%%%#@           %%%%%%%%%%%\n%%%%%%%%%%%%% #*  #      @   %%%%%%%%%%%\n%%%%%%%%%%%%%%-    *   =%    #%%%%%%%%%%\n%%%%%%%%%%%%%%@#      *%     .#%%%%%%%%%\n%%%%%%%%%%%%%%%%-    .@%%       %%%%%%%%\n%%%%%%%%%%%%%%%=    @%%@          #%%%%%\n%%%%%%%%%%%%%%#     #%%=            ##%%\n%%%%%%%%%%%%%%%.      .               #%\n%%%%%%%%%%%%%%%%@                      *\n%%%%%%%%%%%%%%%%%%%%%%\n%%%%%%%%%%%%%%%%%%%%%%\n%%%%%%%%%%%%%%%%%%%%%%                 #\n%%%%%%%%%%%%%%%%%%%%%%-              +%%\n%%%%%%%%%%%%%%%%%%%%%%%.             %%%\n%%%%%%%%%%%%%%%%%%%%%%%.           :%%%%\n%%%%%%%%%%%%%%%%%%%%%%.             +@%%\n%%%%%%%%%%%%%%%%%%%%%%    +%%%%%@    @%%\n%%%%%%%%%%%%%%%%%%%%%.    @%%%%%#     %%\n%%%%%%%%%%%%%%%%%%%%%     #%%%%%@     %%\n%%%%%%%%%%%%%%%%%%%%%%-  -%%%%%%      %%\n\n\nhello world :-P\n\ncosmic:\n.,:::::::::.    :::.    ...      ...    :::  .,-:::::/    ::   .:\n;;;;''''`;;;;,  `;;; .;;;;;;;.   ;;     ;;;,;;-'````'    ,;;   ;;,\n [[cccc   [[[[[. '[[,[[     \\[[,[['     [[[[[[   [[[[[[/,[[[,,,[[[\n $$\"\"\"\"   $$$ \"Y$c$$$$$,     $$$$$      $$$\"$$c.    \"$$ \"$$$\"\"\"$$$\n 888oo,__ 888    Y88\"888,_ _,88P88    .d888 `Y8bo,,,o88o 888   \"88o\n \"\"\"\"YUMMMMMM     YM  \"YMMMMMP\"  \"YmmMMMM\"\"   `'YMUP\"YMM MMM    YMM\n\ndouble struck:\n𝕙𝕖𝕝𝕝𝕠 𝕨𝕠𝕣𝕝𝕕\n\n```\n\n## Installation\nAdd this dependency your pubspec.yaml file:\n\n```\ndependencies:\n  enough_ascii_art: ^1.0.0\n```\nThe latest version or `enough_ascii_art` is [![enough_ascii_art version](https://img.shields.io/pub/v/enough_ascii_art.svg)](https://pub.dartlang.org/packages/enough_ascii_art).\n\n\n## Features and bugs\n\nPlease file feature requests and bugs at the [issue tracker][tracker].\n\n[tracker]: https://github.com/Enough-Software/enough_ascii_art/issues\n\n## Run Example\nAfter checking out this project, you can run the example from the root with this command:\n```bash\ndart ./example/enough_ascii_art_example.dart\n```\n\n## Contribute \u0026 Known Limitations\nAny contributions are welcome!\n\nKnown limitations:\n* Images are always converted to grayscale\n* The FIGlet banners are currently only supported with left-to-right text direction\n* The FIGlet banners are not wrapped into multiple lines\n* You cannot list all available FIGlet fonts, but instead need to know their names (check out the *figlet/fonts* directory!)\n* Currently only western style text emoticons are available\n\nPlease help removing these limitations!\n\n\n## Some more examples\n\n```\n\nshadow:\n ____|  \\  |  _ \\  |   |  ___| |   |\n __|     \\ | |   | |   | |     |   |\n |     |\\  | |   | |   | |   | ___ |\n_____|_| \\_|\\___/ \\___/ \\____|_|  _|\n\n\n\nsmslant:\n   _____  ______  __  _________ __\n  / __/ |/ / __ \\/ / / / ___/ // /\n / _//    / /_/ / /_/ / (_ / _  /\n/___/_/|_/\\____/\\____/\\___/_//_/\n\n\n\neftifont:\n ___  _  _  _  _ _  __  _ _\n| __|| \\| |/ \\| | |/ _|| U |\n| _| | \\\\ ( o ) U ( |_n|   |\n|___||_|\\_|\\_/|___|\\__/|_n_|\n\n\n\nbig:\n ______ _   _  ____  _    _  _____ _    _\n|  ____| \\ | |/ __ \\| |  | |/ ____| |  | |\n| |__  |  \\| | |  | | |  | | |  __| |__| |\n|  __| | . ` | |  | | |  | | | |_ |  __  |\n| |____| |\\  | |__| | |__| | |__| | |  | |\n|______|_| \\_|\\____/ \\____/ \\_____|_|  |_|\n\n\n\n\nisometric1:\n      ___           ___           ___           ___           ___           ___\n     /\\  \\         /\\__\\         /\\  \\         /\\__\\         /\\  \\         /\\__\\\n    /::\\  \\       /::|  |       /::\\  \\       /:/  /        /::\\  \\       /:/  /\n   /:/\\:\\  \\     /:|:|  |      /:/\\:\\  \\     /:/  /        /:/\\:\\  \\     /:/__/\n  /::\\~\\:\\  \\   /:/|:|  |__   /:/  \\:\\  \\   /:/  /  ___   /:/  \\:\\  \\   /::\\  \\ ___\n /:/\\:\\ \\:\\__\\ /:/ |:| /\\__\\ /:/__/ \\:\\__\\ /:/__/  /\\__\\ /:/__/_\\:\\__\\ /:/\\:\\  /\\__\\\n \\:\\~\\:\\ \\/__/ \\/__|:|/:/  / \\:\\  \\ /:/  / \\:\\  \\ /:/  / \\:\\  /\\ \\/__/ \\/__\\:\\/:/  /\n  \\:\\ \\:\\__\\       |:/:/  /   \\:\\  /:/  /   \\:\\  /:/  /   \\:\\ \\:\\__\\        \\::/  /\n   \\:\\ \\/__/       |::/  /     \\:\\/:/  /     \\:\\/:/  /     \\:\\/:/  /        /:/  /\n    \\:\\__\\         /:/  /       \\::/  /       \\::/  /       \\::/  /        /:/  /\n     \\/__/         \\/__/         \\/__/         \\/__/         \\/__/         \\/__/\n\n\nchunky:\n _______ _______ _______ _______ _______ _______\n|    ___|    |  |       |   |   |     __|   |   |\n|    ___|       |   -   |   |   |    |  |       |\n|_______|__|____|_______|_______|_______|___|___|\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenough-software%2Fenough_ascii_art","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenough-software%2Fenough_ascii_art","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenough-software%2Fenough_ascii_art/lists"}