Figlr ASCII Art on Fly
Figlr is a simple fun tool to generate FIGlet text. Those are normally used to make ASCII art banners.
It makes use of Figlet-JS which is a JavaScript implementation of a FIGdriver and is also available as a Node module and a jQuery plugin.
The code : The code is a simple javascript trick, to listen on the paste and keyup events from a text area and populate a pre tag with the FIGlet text.
$(function(){
$('#fig').live('keyup paste',function(evt){
$("#ofig").figlet($.trim(this.value));
});
});
Check out the Demo here and try FIGLR here.
If this was fun, do check L33t Translator
#javascript#linux
About Hemanth HM
Hemanth HM is a Sr. Machine Learning Manager at PayPal, Google Developer Expert, TC39 delegate, FOSS advocate, and community leader with a passion for programming, AI, and open-source contributions.