Fun with FIGlet

FIGlet is an awesome tool for generating text-based ascii art. I discovered it a few months go when Scott Gonzalez showed me his wonderful FIGlet parser written in Javascript. It's a perfect example of code which is usable both in the browser and server.

I love the results, but I will say that finding the right font can take time. Some text simply doesn't render well with particular fonts, and constantly flipping back and forth between Emacs and the terminal (even the built in terminal) is a total killjoy.

Did I mention trial and error sucks?

Well I'm not one for one for blind repetition, so I've created a simple web service to both convert text into FIGlet art and browse all the available options. All one has to do is specify the text and font they'd like to use (?text=Foobar&font=standard), or browse a gallery of all fonts, which also takes similar query parameters.

[![figlet.nodejitsu.com](/images/articles/figlet.jpg)](http://figlet.nodejitsu.com)

More than just ascii art

Perhaps just as superficial, but FIGlet can be used to do some other cool stuff. What if you wanted to convert text into binary data, or morse code?

01100101 01110110 01100101 01101110 01100010 01101001 01101110 01100001 01110010 01111001 01100100 01100001 01110100 01100001

. ...- . -. -... .. -. .- .-. -.-- -.. .- - .-


                                __           __                   __            _    
                               /\ \__       /\ \                 /\ \         /'_`\  
      ___       __      __     \ \ ,_\      \ \ \___     __  __  \ \ \___    /\_\/\`\
    /' _ `\   /'__`\  /'__`\    \ \ \/       \ \  _ `\  /\ \/\ \  \ \  _ `\  \/_//'/'
    /\ \/\ \ /\  __/ /\ \L\.\_   \ \ \_  __   \ \ \ \ \ \ \ \_\ \  \ \ \ \ \    /\_\ 
    \ \_\ \_\\ \____\\ \__/.\_\   \ \__\/\ \   \ \_\ \_\ \ \____/   \ \_\ \_\   \/\_\
     \/_/\/_/ \/____/ \/__/\/_/    \/__/\ \/    \/_/\/_/  \/___/     \/_/\/_/    \/_/
                                         \/