fancy-text-generator
v1.2.0
Published
Whether you're building a social media app, creating dynamic web pages, or simply having fun with styled text, fancy-text-generator https://thefancytext.com/ makes it easy to give your text that extra flair.
Maintainers
Readme
Fancy Text Generator
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...
Fancy Text Styles
| Key | Output Example | | ----------------- | ------------------ | | Bold | 𝗵𝗲𝗹𝗹𝗼 𝘄𝗼𝗿𝗹𝗱 | | Italic | ℎ𝑒𝑙𝑙𝑜 𝑤𝑜𝑟𝑙𝑑 | | BoldItalic | 𝗁𝗈𝗅𝗅𝗈 𝗐𝗈𝗋𝗂𝗅𝗌 | | Underline | 𝒽̲𝑒̲𝓁̲𝓁̲ℴ̲ 𝓌̲ℴ̲𝓇̲𝓁̲𝒹̲ | | Strikethrough | 𝖍𝖊𝖑𝖑𝖔 𝖂𝖔𝖗𝖑𝖉 | | Monospace | 𝙝𝙚𝙡𝙡𝙤 𝙬𝙤𝙧𝙡𝙙 | | Superscript | ʰᵉˡˡᵒ ʷᵒʳˡᵈ | | Subscript | ₕₑₗₗₒ ₓₒᵣˡᵈ | | Fraktur | 𝔥𝔢𝔩𝔩𝔬 𝔴𝔬𝔯𝔩𝔡 | | BoldFraktur | 𝗁𝖾𝗅𝗅𝗈 𝗐𝗈𝗋𝗂 | | Double Struck | 𝕳𝖊𝖑𝖑𝖔 𝖂𝖔𝖗𝖑𝖙 | | Script | 𝒽𝑒𝓁𝓁𝑜 𝓌𝑜𝓇𝓁𝒹 | | Bold Script | 𝗁𝑒𝗅𝗅𝗈 𝗐𝗈𝗋𝗂 | | Fancy1 | 🅗🅔🅛🅛🅞 🅦🅞🅡🅛🅓 | | Fancy2 | 🄷🄴🄻🄻🄾 🅆🄾🅁🄛🄳 | | Fancy3 | ん乇レレの W の尺レり |
Installation
Use the package manager npm to install fancy text Generator.
npm install fancy-text-generatorUsage
const 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の尺レりContributing
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.
