Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including unic-ghom with all npm packages installed. Try it out:

var unicGhom = require("unic-ghom")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

unic-ghom v1.0.1

format text to unicode chars for fiancy fonts

Unic


          //////////////
         // GET UNIC //
        //////////////

install from npm with "npm i unic-ghom"

// get function
const unic = require("unic-ghom")

          /////////////////
         // UNIC SYNTAX //
        /////////////////

unic( input, style )

          ////////////////
         // UNIC PROPS //
        ////////////////

String input // (required)
    Text to transform

String style // (required)
    Style of output font

return String output

          ////////////////////////////////
         // HOW TO USE UNIC FUNCTION ? //
        ////////////////////////////////

unic( "Hello World", "italic")
// returns : 𝘏𝘦𝘭𝘭𝘰 𝘞𝘰𝘳𝘭𝘥

unic( "Hello World", "bold")
// returns : 𝗛𝗲𝗹𝗹𝗼 𝗪𝗼𝗿𝗹𝗱

unic( "Hello World", "stick")
// returns : 𝙷𝚎𝚕𝚕𝚘 𝚆𝚘𝚛𝚕𝚍

unic( "Hello World", "manu")
// returns : 𝓗𝓮𝓵𝓵𝓸 𝓦𝓸𝓻𝓵𝓭

          ////////////////////////////
         // LIST OF POSSIBLE TYPES //
        ////////////////////////////

[
    "bold", "stick", "italic", "important",
    "manu", "bold-manu", "gothic", "bold-gothic",
    "spaces", "title"
]  

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free