Skip to content

License

Notifications You must be signed in to change notification settings

DennClorX/asciifyer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

98c2874 · · Jun 19, 2025

History

3 Commits
Jun 19, 2025
Jun 19, 2025
Jun 19, 2025
Jun 19, 2025
Jun 19, 2025

Repository files navigation

Asciifyer

Asciifyer is an npm package that allows you to convert regular text into stylized ASCII art using various fonts. It supports multiple font styles and is easy to integrate into your Node.js projects.

Features

  • Convert text to ASCII art
  • Multiple font styles (including Standard, Whimsy, and more)
  • You just download the fonts you use!

Installation

npm install asciifyer

Usage Example

Remember that only the fonts that you use will be installed!

const { stringToAscii, fonts } = require('asciifyer');


// Generate ASCII art with the "Univers" font

const asciiArt = await stringToAscii('Hello, World!', fonts.Univers);

console.log(asciiArt);

If you wanna delete all the fonts you have on your project you can just use. This will clear the Fonts folder from the npm.

const { clearFonts } = require('asciifyer');


clearFonts().then(() =>gt; {
     console.log('Fonts cleared!');

})

Fonts

For selecting the font use fonts.And the id of the font. The fonts will be downloaded when you want to use it making this library pretty lightweight.

  • Doom ID: Doom
______

|  _  \

| | | |  ___    ___   _ __ ___  

| | | | / _ \  / _ \ | '_ ` _ \ 

| |/ / | (_) || (_) || | | | | |

|___/   \___/  \___/ |_| |_| |_|

  • Slant ID: Slant
   _____    __                   __ 
  / ___/   / /  ____ _   ____   / /_
    \__ \   / /  / __ `/  / __ \ / __/

 ___/ /  / /  / /_/ /  / / / // /_

/____/  /_/   \__,_/  /_/ /_/ \__/
  • Star Wars ID: StarWars
     _______..___________.     ___      .______         ____    __    ____      ___      .______           _______.
    /        ||           |    /   \     |   _  \        \   \  /  \  /   /     /   \     |   _  \         /       |
    |   (----``---|  |----`   /  ^  \    |  |_)  |        \   \/    \/   /     /  ^  \    |  |_)  |       |   (----`

    \   \        |  |       /  /_\  \   |      /          \            /     /  /_\  \   |      /         \   \

.----)   |       |  |      /  _____  \  |  |\  \----.      \    /\    /     /  _____  \  |  |\  \----..----)   |

|_______/        |__|     /__/     \__\ | _| `._____|       \__/  \__/     /__/     \__\ | _| `._____||_______/
  • ANSI Regular ID: ANSIRegular
 █████  ███    ██ ███████ ██     ██████  ███████  ██████  ██    ██ ██       █████  ██████  
██   ██ ████   ██ ██      ██     ██   ██ ██      ██       ██    ██ ██      ██   ██ ██   ██ 
███████ ██ ██  ██ ███████ ██     ██████  █████   ██   ███ ██    ██ ██      ███████ ██████  
██   ██ ██  ██ ██      ██ ██     ██   ██ ██      ██    ██ ██    ██ ██      ██   ██ ██   ██ 
██   ██ ██   ████ ███████ ██     ██   ██ ███████  ██████   ██████  ███████ ██   ██ ██   ██ � 
  • ANSI Shadow ID: ANSIShadow
 █████╗ ███╗   ██╗███████╗██╗    ███████╗██╗  ██╗ █████╗ ██████╗  ██████╗ ██╗    ██╗
██╔══██╗████╗  ██║██╔════╝██║    ██╔════╝██║  ██║██╔══██╗██╔══██╗██╔═══██╗██║    ██║
███████║██╔██╗ ██║███████╗██║    ███████╗███████║███████║██║  ██║██║   ██║██║ █╗ ██║
██╔══██║██║╚██╗██║╚════██║██║    ╚════██║██╔══██║██╔══██║██║  ██║██║   ██║██║███╗██║
██║  ██║██║ ╚████║███████║██║    ███████║██║  ██║██║  ██║██████╔╝╚██████╔╝╚███╔███╔╝
╚═╝  ╚═╝╚═╝  ╚═══╝╚══════╝╚═╝    ╚══════╝╚═╝  ╚═╝╚═╝  ╚═╝╚═════╝  ╚═════╝  ╚══╝╚══╝ �╝ 
  • 3D-ASCII ID: IIIDASCII
 ________      ________                     ________      ________       ________      ___      ___     

|\_____  \    |\   ___ \                   |\   __  \    |\   ____\     |\   ____\    |\  \    |\  \

\|____|\ /_   \ \  \_|\ \    ____________  \ \  \|\  \   \ \  \___|_    \ \  \___|    \ \  \   \ \  \
       \|\  \   \ \  \ \\ \  |\____________\ \ \   __  \   \ \_____  \    \ \  \        \ \  \   \ \  \
     ___\_\  \   \ \  \_\\ \ \|____________|  \ \  \ \  \   \|____|\  \    \ \  \____    \ \  \   \ \  \
     |\_______\   \ \_______\                  \ \__\ \__\    ____\_\  \    \ \_______\   \ \__\   \ \__\
     \|_______|    \|_______|                   \|__|\|__|   |\_________\    \|_______|    \|__|    \|__|
                                                             \|_________|
  • Delta Corps Priest 1 ID: DeltaCorpsPriest
████████▄     ▄████████  ▄█           ███        ▄████████       ▄████████  ▄██████▄     ▄████████    ▄███████▄    ▄████████         ▄███████▄    ▄████████  ▄█     ▄████████    ▄████████     ███
███   ▀███   ███    ███ ███       ▀█████████▄   ███    ███      ███    ███ ███    ███   ███    ███   ███    ███   ███    ███        ███    ███   ███    ███ ███    ███    ███   ███    ███ ▀█████████▄       
███    ███   ███    █▀  ███          ▀███▀▀██   ███    ███      ███    █▀  ███    ███   ███    ███   ███    ███   ███    █▀         ███    ███   ███    ███ ███▌   ███    █▀    ███    █▀     ▀███▀▀██       
███    ███  ▄███▄▄▄     ███           ███   ▀   ███    ███      ███        ███    ███  ▄███▄▄▄▄██▀   ███    ███   ███               ███    ███  ▄███▄▄▄▄██▀ ███▌  ▄███▄▄▄       ███            ███   ▀       
███    ███ ▀▀███▀▀▀     ███           ███     ▀███████████      ███        ███    ███ ▀▀███▀▀▀▀▀   ▀█████████▀  ▀███████████      ▀█████████▀  ▀▀███▀▀▀▀▀   ███▌ ▀▀███▀▀▀     ▀███████████     ███
███    ███   ███    █▄  ███           ███       ███    ███      ███    █▄  ███    ███ ▀███████████   ███                 ███        ███        ▀███████████ ███    ███    █▄           ███     ███
███   ▄███   ███    ███ ███▌    ▄     ███       ███    ███      ███    ███ ███    ███   ███    ███   ███           ▄█    ███        ███          ███    ███ ███    ███    ███    ▄█    ███     ███
████████▀    ██████████ █████▄▄██    ▄████▀     ███    █▀       ████████▀   ▀██████▀    ███    ███  ▄████▀       ▄████████▀        ▄████▀        ███    ███ █▀     ██████████  ▄████████▀     ▄████▀
                        ▀                                                               ███    ███                                               ███    ███��██
  • DOS Rebel ID: DOSRebel
 ██████████      ███████     █████████     ███████████            █████              ████ 
░░███░░░░███   ███░░░░░███  ███░░░░░███   ░░███░░░░░███          ░░███              ░░███
 ░███   ░░███ ███     ░░███░███    ░░░     ░███    ░███   ██████  ░███████   ██████  ░███
 ░███    ░███░███      ░███░░█████████     ░██████████   ███░░███ ░███░░███ ███░░███ ░███
 ░███    ░███░███      ░███ ░░░░░░░░███    ░███░░░░░███ ░███████  ░███ ░███░███████  ░███
 ░███    ███ ░░███     ███  ███    ░███    ░███    ░███ ░███░░░   ░███ ░███░███░░░   ░███
 ██████████   ░░░███████░  ░░█████████     █████   █████░░██████  ████████ ░░██████  █████
░░░░░░░░░░      ░░░░░░░     ░░░░░░░░░     ░░░░░   ░░░░░  ░░░░░░  ░░░░░░░░   ░░░░░░  ░░░░░�░░
  • Georgia11 ID: Georgia11
                                                     ,,
  .g88"""bgd                                          db

.dP'     `M                                                        __,   __,

dM'       `   .gP"Ya   ,pW"Wq.  `7Mb,od8  .P"Ybmmm `7MM   ,6"Yb.  `7MM  `7MM

MM           ,M'   Yb 6W'   `Wb   MM' "' :MI  I8     MM  8)   MM    MM    MM

MM.    `7MMF'8M"""""" 8M     M8   MM      WmmmP"     MM   ,pm9MM    MM    MM

`Mb.     MM  YM.    , YA.   ,A9   MM     8M          MM  8M   MM    MM    MM

  `"bmmmdPY   `Mbmmd'  `Ybmd9'  .JMML.    YMMMMMb  .JMML.`Moo9^Yo..JMML..JMML.

                                         6'     dP

                                         Ybmmmd'
  • Univers ID: Univers
88        88               88
88        88                ""
88        88
88        88  8b,dPPYba,   88  8b       d8   ,adPPYba,  8b,dPPYba,  ,adPPYba,
88        88  88P88P'   `"8a  88  `8b     d8'  a8P_____88  88P'   "Y8  I8[    ""

88        88  88       88  88   `8b   d8'   8PP"""""""  88           `"Y8ba,

Y8a.    .a8P  88       88  88    `8b,d8'    "8b,   ,aa  88          aa    ]8I

 `"Y8888Y"'   88       88  88      "8"       `"Ybbd8"'  88          `"YbbdP"'
  • stencil ID: stencil
   .=#@@-.%@#=#%  -@@@% *@@@@@@* @@@@- *@@@@@@@.=@@@@@+  *@@@@@@@@*   -@@@@@*     .=#%@-:%%*=%#  +@@@@@@@@=  *@@@@@@@@-      
  =@@@@#.   -#@@@  -@@#. *@@@@@@* .#@@-  +@@@@@@: .:*@@+   .#@@@@@@@*    *@%:     +@@@@:  .=@@@%   -@@@@@@-    +@@@@@@:
 =@@@@@*      +@@  -@@   *@@@@@@*  .@@-  =@@@@@@:    =@+     +@@@@@@@#   .@+     #@@@@*     .%@%   :@@@@@@:    =@@@@@@.
 %@@@@@%+-.    ##  :%+   *@@@@@@*   +%:  =@@@@@@:  =# -.    +:=@@@@@@@%. .@+    *@@@@@#      :@%   -@@@@@@:    =@@@@@@.
  *@@@@@@@@@%*-          *@@@@@@*        =@@@@@@: -@@       *@ =@@@@@@@%. @+   .@@@@@@#       --   -@@@@@@:    =@@@@@@.
 ..#@@@@@@@@@@@%-        *@@@@@@*        =@@@@@@.=@@%       *@. -@@@@@@@@:=+   =@@@@@@#            -@@@@@@:    =@@@@@@.
   -#@@@@@@@@@@@-        *@@@@@@*        =@@@@@@: -@@       *@   :@@@@@@@@-    -@@@@@@#            -@@@@@@:    =@@@@@@.
 ++*  .-+#@@@@@@@#       *@@@@@@*        =@@@@@@:  =# ..    *@    .%@@@@@@@-   .@@@@@@#            -@@@@@@:    =@@@@@@.    =*
 %@+      -%@@@@+        *@@@@@@*        =@@@@@@:    .@#    *@     .#@@@@@@+    +@@@@@*       ##   -@@@@@@:    =@@@@@@.   .@@
  #@@+      *@@@#        *@@@@@@*        =@@@@@@:   =@@*    %@-      #@@@@@+     *@@@@#     .#@-   :@@@@@@:    =@@@@@@.  :%@@
 %@@@@@*: +%@@#-       .*@@@@@@@@*.     +@@@@@@@.-#@@@@#  +@@@@*.     *@@@@+      :*@@@#..+#@#.   =%@@@@@@%-  +@@@@@@@.=%@@@@
 :- .-+- +=:.          -:::::::::      :::::::: .-::::.  ::::::       ::::.         :-+:.+-.     .::::::::.  :::::::: :-:::::

More fonts will be added in the future

Disclaimer

This project was made with help of GitHub Copilot. Also feel free to modify it as you want!!

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published