The Figlet in the Browser
This page runs the linux tool figlet in the browser.
Figlet is an *nix tool to print letters in "nice fonts". Make fancy Figlet text! It also provides the API for users to call the function.
Figlet for Hello, Figlet!
----Found in Cache---- _ _ _ _ _____ _ _ _ _ | | | | ___| | | ___ | ___(_) __ _| | ___| |_| | | |_| |/ _ \ | |/ _ \ | |_ | |/ _` | |/ _ \ __| | | _ | __/ | | (_) | | _| | | (_| | | __/ |_|_| |_| |_|\___|_|_|\___( ) |_| |_|\__, |_|\___|\__(_) |/ |___/
API (Application Programming Interface)
The API following has a rate-limit 1 call per second.https://uploadbeta.com/api/figlet/?cached&msg=Hello!It will return JSON-encoded data:
" _ _ _ _ _ \n| | | | ___| | | ___ | |\n| |_| |\/ _ \\ | |\/ _ \\| |\n| _ | __\/ | | (_) |_|\n|_| |_|\\___|_|_|\\___\/(_)\n \n"The parameter msg can also be specified via the $_POST method.
Principle
We use the linux command figlet.NAME FIGlet - display large characters made up of ordinary screen characters SYNOPSIS figlet [ -cklnoprstvxDELNRSWX ] [ -d fontdirectory ] [ -f fontfile ] [ -m layoutmode ] [ -w outputwidth ] [ -C controlfile ] [ -I infocode ] [ message ] DESCRIPTION FIGlet prints its input using large characters (called ``FIGcharac†ters'')made up of ordinary screen characters (called ``sub-charac†ters''). FIGlet output is generally reminiscent of the sort of ``sig†natures'' many people like to put at the end of e-mail and UseNet mes†sages. It is also reminiscent of the output of some banner programs, although it is oriented normally, not sideways. FIGlet can print in a variety of fonts, both left-to-right and right- to-left, with adjacent FIGcharacters kerned and ``smushed'' together in various ways. FIGlet fonts are stored in separate files, which can be identified by the suffix ``.flf''. In systems with UTF-8 support FIGlet may also support TOIlet ``.tlf'' fonts. Most FIGlet font files will be stored in FIGlet's default font directory. FIGlet can also use ``control files'', which tell it to map certain input characters to certain other characters, similar to the Unix tr command. Con†trol files can be identified by the suffix ``.flc''. Most FIGlet control files will be stored in FIGlet's default font directory. You can store FIGlet fonts and control files in compressed form. See COM PRESSED FONTS. USAGE Just start up FIGlet (type ``figlet'') and then type whatever you want. Alternatively, pipe a file or the output of another command through FIGlet, or put input on the command line after the options. See EXAMPLES for other things to do.