{"id":15680277,"url":"https://github.com/denyncrawford/deno-figlet","last_synced_at":"2025-07-16T11:17:22.861Z","repository":{"id":54481228,"uuid":"278942507","full_name":"denyncrawford/deno-figlet","owner":"denyncrawford","description":"A Deno 🦕 Figlet from text generator","archived":false,"fork":false,"pushed_at":"2023-05-08T10:13:32.000Z","size":837,"stargazers_count":11,"open_issues_count":3,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-07T18:53:21.535Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/denyncrawford.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-07-11T21:12:32.000Z","updated_at":"2024-02-10T15:11:22.000Z","dependencies_parsed_at":"2024-10-03T16:41:28.719Z","dependency_job_id":"7dd16db4-2e62-41d3-aae3-64b9451820fb","html_url":"https://github.com/denyncrawford/deno-figlet","commit_stats":{"total_commits":26,"total_committers":2,"mean_commits":13.0,"dds":"0.038461538461538436","last_synced_commit":"814096436976a67ce0e0afbf3ea518053a2f9ada"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/denyncrawford/deno-figlet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denyncrawford%2Fdeno-figlet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denyncrawford%2Fdeno-figlet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denyncrawford%2Fdeno-figlet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denyncrawford%2Fdeno-figlet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/denyncrawford","download_url":"https://codeload.github.com/denyncrawford/deno-figlet/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denyncrawford%2Fdeno-figlet/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265505587,"owners_count":23778540,"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":[],"created_at":"2024-10-03T16:41:18.395Z","updated_at":"2025-07-16T11:17:22.804Z","avatar_url":"https://github.com/denyncrawford.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"        ____                                 ______    _              __         __ \n       / __ \\  ___    ____   ____           / ____/   (_)   ____ _   / /  ___   / /_\n      / / / / / _ \\  / __ \\ / __ \\ ______  / /_      / /   / __ `/  / /  / _ \\ / __/\n     / /_/ / /  __/ / / / // /_/ //_____/ / __/     / /   / /_/ /  / /  /  __// /_  \n    /_____/  \\___/ /_/ /_/ \\____/        /_/       /_/    \\__, /  /_/   \\___/ \\__/  \n                                                         /____/                     \n\n[![nest badge](https://nest.land/badge.svg)](https://nest.land/package/deno-figlet) [![HitCount](http://hits.dwyl.com/denyncrawford/deno-figlet.svg)](http://hits.dwyl.com/denyncrawford/deno-figlet)\n\n**Deno-Figlet** is a JavaScript/Typescript implementation of a FIGfont driver built and available for Deno 🦕 (Soon browser availability).\n\n[Figlet](http://www.figlet.org/) is a program for making large letters out of ordinary text.\n\nIf you want to know more about how a Figlet font is built, please check out [the FIGfont documentation](http://www.jave.de/figlet/figfont.html).\n\n\u003e **Notice:** All the fonts in this package are not my property, all credits to their creators (if you want to know who created a font, you can look inside each font).\n\n# :computer: Installation\n\n## :inbox_tray: Importing \n\n```javascript\nimport figlet from 'https://de o.land/x/deno_figlet/mod.ts'\n```\n\n## :wrench: Basic Usage:\n\n**Deno-Figlet** exports by default the quick method wich runs without specifiying any font or ditctionary preset.\n\n```javascript\nlet myAwesomeFiglet = await figlet(\"Deno is Awesome.\")\nconsole.log(myAwesomeFiglet)\n```\n\n**It should print**:\n\t\n\t ____                            _                                                                     _ \n \t|  _ \\    ___   _ __     ___    (_)  ___     __ _  __      __   ___   ___    ___    _ __ ___     ___  | |\n \t| | | |  / _ \\ | '_ \\   / _ \\   | | / __|   / _` | \\ \\ /\\ / /  / _ \\ / __|  / _ \\  | '_ ` _ \\   / _ \\ | |\n \t| |_| | |  __/ | | | | | (_) |  | | \\__ \\  | (_| |  \\ V  V /  |  __/ \\__ \\ | (_) | | | | | | | |  __/ |_|\n \t|____/   \\___| |_| |_|  \\___/   |_| |___/   \\__,_|   \\_/\\_/    \\___| |___/  \\___/  |_| |_| |_|  \\___| (_)\n\n\nYou can also import the methods `text` and `textCB` if you want to select the font and/or set a custom dictionary.\n\n```javascript\nimport filget, { text, textCB } from 'https://deno.land/x/deno_figlet/mod.ts'\n\nlet myAwesomeFiglet = await text(\"Deno is Awesome.\",\"starwars\")\nconsole.log(myAwesomeFiglet)\n\n```\n\nYou will get an awesome Star Wars figlet :wink: :rocket:.\n\nFor the ones who likes the NodeJS figlet API you can use textCB, wich gets the same results on first param into a callback function:\n\n```javascript\n\ntextCB(\"Deno is Awesome.\", \"doom\", null, (myAwesomeFiglet) =\u003e {\n\tconsole.log(myAwesomeFiglet)\n})\n\n```\n\nYou will get an awesome Doom Figlet :heart: :gun:.\n\n## 🧪 Examples\n\n- **Basic usage**:\n\n```bash\ndeno run -A https://deno.land/x/deno_figlet/examples/starwars.ts\n```\n\n- **Colors (working with another library)**:\n\n```bash\ndeno run -A https://deno.land/x/deno_figlet/examples/colors.ts\n```\n\n\u003e **Notice**: Colors are provided by the Deno [ansi_styles](https://deno.land/x/ansi_styles) module.\n\n## :crown: Contributing\n\nThis project is 100% OpenSource, so you can help me with:\n\n- **Bug Report**.\n\n- **Ideas and contributing in general** \n\n- **If you are brave enough to write/port/add your own font, go ahead and make a PR.**\n\n    \u003e To make your own fonts quickly and easily, check this [awesome FIGlet font editor](http://patorjk.com/figlet-editor/#/edit) and say goodbye to the handmade stuff.\n\n  - **Once you have your font ready to go**:\n\n    - Put the `font-file-name.flf` into the `./src/fonts/`\n    - Perform the bundle with `deno run -A ./src/scripts/fontBundler.js`\n    - Check if the bundle is ok at `./dist/fonts/_font_file_name.js`\n    - Check if type is correctly generated\n\n  - **Then commit and make the PR**.\n\n## Nice To Know\n\nThis is a reminder that this library contains fonts dumped from internet, some of them may not be compatible with the default dictionary or it is not well formatted to work with the method that we use to extract the font from the files. So please expect some fonts to be broken with issues like:\n\n- Missing characters or capitalized letters.\n- Broken config header.\n- Mismatching letters with the default dictionary.\n\nIf you want to fix fonts you can edit them as described in the contributing section. By now I'm not fixing them since this is a small project and I have no time too look and fix into each file.\n\n\u003e Maybe, i will add some validations in the bundler to exclude fonts that won't pass the default dictionary.\n\n## Dictionaries\n\nDictionaries are arrays of characters in specific order that will match the characters placed in a font file. By default this library uses a custom dictionary that matches almost all fonts in this repository, but some custom fonts may not work with the default dictionary, so you have to make sure your font does.\n\nIf the font you're using doesn't match the default dictionary you can always pass a custom one to the exported methods of this module.\n\n### How to create a custom dictionary\n\nTo create a custom dictionary you need to check the order of the characters in the target font file, then you must pass an array to the desired method for generating the text, this is an example of a dictionary:\n\n```typescript\nconst dictionary = ['A', 'B', 'C', ...];\nconst figlet = text('Hello World.', 'starwars', dictionary);\n```\n\n## :pencil: TO DO\n\n- Chainable text on methods.\n- More than one space. (Done)\n- SyncText method. (Done)\n- Available font list (autocompletion types). (Done)\n- Multiline. (Done)\n- Dictionary Documentation (Done)\n- How to: Make your own dictionary preset. (Done)\n- How to: Font usage markup. (Done)\n\n## :clipboard: Changes\n\n- Now it supports multiline text and multiple spaces for text.\n\n- Now the deno-figlet module comes with a font bundler to parse all fonts into ESM modules it also generates types for IDE autocompletion. It makes importing and manipulating them a lot easier at production time, but the fonts must still be written in FIGfont format inside the src folder.\n\n- You can now import the fonts separately to play with them however you want.\n\n    ```javascript\n    import { _font_name } from 'https://deno.land/x/deno_figlet/dist/fonts/mod.ts'\n    ```\n\n    **OR**\n\n    ```javascript\n    import font from 'https://deno.land/x/deno_figlet/dist/fonts/_font_name.ts'\n    ```\n  \u003e Note: You don't need to import fonts manually for using this module, this information is only for developers.\n\nWritten By [Crawford.](https://github.com/denyncrawford).\n\n# :scroll: License\n\nMIT License\n\nCopyright (c) Crawford.\n\n[Full license](https://github.com/denyncrawford/deno-figlet/blob/master/LICENSE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenyncrawford%2Fdeno-figlet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdenyncrawford%2Fdeno-figlet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenyncrawford%2Fdeno-figlet/lists"}