its npm package to create fancy text using this lab
Fancy Text Generator is a Node.js module that allows you to generate fancy and stylish text using various decorative fonts and styles. Perfect for adding flair to your web app. use below keys Bold, Italic, BoldItalic, Underline, Strikethrough, Monospace, Superscript, Subscript, Fraktur, BoldFraktur, Double Struck, Script, Bold Script, Fancy1, Fancy2, Fancy3, more to come...
Use the package manager npm to install fancy text Generator.
npm install fancy-text-generatorconst generateFancyText = require("fancy-text-generator");
const inputText = "hello world";
generateFancyText(inputText, "italic"); // returns ℎ𝑒𝑙𝑙𝑜 𝑤𝑜𝑟𝑙𝑑
generateFancyText(inputText, "bold"); // returns 𝗵𝗲𝗹𝗹𝗼 𝘄𝗼𝗿𝗹𝗱
generateFancyText(inputText, "underline"); // returns 𝒽̲𝑒̲𝓁̲𝓁̲ℴ̲ 𝓌̲ℴ̲𝓇̲𝓁̲𝒹̲
generateFancyText(inputText, "fancy1"); // returns 🅗🅔🅛🅛🅞 🅦🅞🅡🅛🅓
generateFancyText(inputText, "fancy2"); // returns 🄷🄴🄻🄻🄾 🅆🄾🅁🄻🄳
generateFancyText(inputText, "fancy3"); // returns ん乇レレの Wの尺レりPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.