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

Share this