This all started because of a tweet Wassim did, and I tried to replicate that. I've managed to do a passable version using online tools but it was a manual process. So I tried recreating it in Node.js using Figlet, and the Monokai Dimmed theme from VS Code. I should have stopped here, it was good enough.
But I went too deep down the rabbit hole, so I built a customizable CLI with more than 5000 options to generate ASCII art in the terminal. Enjoy! And do comment below with whatever cool thing you end up generating with it.
npx ascii-themes generate dev.to
- Optional flags:
--fontThe Figlet Font to use. Defaults to 'Slant Relief'.
--themeNameThe VS Code theme to use. Defaults to 'Monokai Dimmed'.
--horizontalLayoutThe horizontal layout to use for the Figlet Font. Defaults to 'default'.
--verticalLayoutThe vertical layout to use for the Figlet Font. Defaults to 'default'.
The CLI has 2 interactive modes:
npx ascii-themes -i
Will allow you to select from the available commands (generate, support, interactive) and input the flags for them via text prompts.
npx ascii-themes interactive
Will allow you to input the text and select from a list of the available fonts, themes, and layouts.
To see supported fonts and themes run
npx ascii-themes support.
Or you can watch this video tweet I did while building the CLI, it shows you all available fonts in one minute.
Alex Lakatos 🥑🇮🇩 @jsdayidDoes the world need another ASCII Art CLI?16:01 PM - 28 Sep 2019