{"id":32196502,"url":"https://github.com/gered/clj-figlet","last_synced_at":"2026-02-21T12:01:40.718Z","repository":{"id":15517471,"uuid":"18251785","full_name":"gered/clj-figlet","owner":"gered","description":"A Clojure library to generate text banners in an 'ASCII Art' style using FIGlet fonts","archived":false,"fork":false,"pushed_at":"2014-03-29T22:12:48.000Z","size":172,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-19T04:46:59.162Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Clojure","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/gered.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2014-03-29T22:00:44.000Z","updated_at":"2022-03-10T04:12:59.000Z","dependencies_parsed_at":"2022-09-13T21:12:53.303Z","dependency_job_id":null,"html_url":"https://github.com/gered/clj-figlet","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gered/clj-figlet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gered%2Fclj-figlet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gered%2Fclj-figlet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gered%2Fclj-figlet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gered%2Fclj-figlet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gered","download_url":"https://codeload.github.com/gered/clj-figlet/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gered%2Fclj-figlet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29680147,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T11:29:27.227Z","status":"ssl_error","status_checked_at":"2026-02-21T11:29:20.292Z","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":[],"created_at":"2025-10-22T02:35:37.295Z","updated_at":"2026-02-21T12:01:40.713Z","avatar_url":"https://github.com/gered.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# clj-figlet\n\nA Clojure library to generate text banners in an 'ASCII Art' style using FIGlet fonts, similar to other\n[FIGlet programs](http://www.figlet.org/).\n\n## Usage\n\n![\"clj-figlet version\"](https://clojars.org/clj-figlet/latest-version.svg)\n\nYou'll need to download one or more FIGlet fonts first. Probably the best place to get these is the\n[FIGlet font database](http://www.figlet.org/fontdb.cgi). Once you've got some ready loading them up is easy:\n\n```clojure\n(use 'clj-figlet.core)\n\n(def flf (load-flf \"/Users/gered/roman.flf\"))\n```\n\n`load-flf` returns a map which you will need to pass as the `flf` argument to any of the render functions.\nSome useful properties of flf fonts are present in the `:header` key.\n\nRendering characters, strings, multi-line strings are all easy. For example:\n\n```clojure\n(render-char flf \\A)\n```\n\n`render-char`, `render-line` and `render` all return the rendered output as sequences of strings. Each string\nin the sequence corresponds to a line of rendered output (a line of 'pixels' if you like). The number of strings\nwill be equal to the height of the font (which is stored in the flf header under `:height`).\n\nIf we just cared about getting some nice output right away (e.g. for use when outputting to the console):\n\n```clojure\n(println\n  (clojure.string/join\n    \\newline\n    (render-char flf \\A)))\n     _\n    / \\\n   / _ \\\n  / ___ \\\n /_/   \\_\\\n\n=\u003e nil\n```\n\nRendering whole strings is just as easy:\n\n```clojure\n(println\n  (clojure.string/join\n    \\newline\n    (render flf \"Hello, world!\")))\n  _   _          _   _                                           _       _   _\n | | | |   ___  | | | |   ___         __      __   ___    _ __  | |   __| | | |\n | |_| |  / _ \\ | | | |  / _ \\        \\ \\ /\\ / /  / _ \\  | '__| | |  / _` | | |\n |  _  | |  __/ | | | | | (_) |  _     \\ V  V /  | (_) | | |    | | | (_| | |_|\n |_| |_|  \\___| |_| |_|  \\___/  ( )     \\_/\\_/    \\___/  |_|    |_|  \\__,_| (_)\n                                |/\n=\u003e nil\n```\n\nFor convenience sake, you can also use the `render-to-string` function:\n\n```clojure\n(println (render-to-string flf \"w00t!\"))\n              ___     ___    _     _\n __      __  / _ \\   / _ \\  | |_  | |\n \\ \\ /\\ / / | | | | | | | | | __| | |\n  \\ V  V /  | |_| | | |_| | | |_  |_|\n   \\_/\\_/    \\___/   \\___/   \\__| (_)\n\n=\u003e nil\n```\n\nPlease note that currently, clj-figlet only supports the 'Full Size' layout mode as detailed in the FIGfont\nspecifications. The 'Fitting Only' and 'Smushing' layout modes will be added in the future.\n\n## License\n\nDistributed under the the MIT License. See LICENSE for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgered%2Fclj-figlet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgered%2Fclj-figlet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgered%2Fclj-figlet/lists"}