fancy-fonts-converter
v1.1.0
Published
Viele Fancy Unicode-Schriften für Node.js
Readme
🎨 fancy-fonts-converter
Convert normal text to 18 different Unicode fancy font styles! Perfect for social media, Discord, Telegram, or anywhere you want to stand out! ✨
📦 Installation
npm install fancy-fonts-converter🚀 Quick Start
As a Module
const fancy = require('fancy-fonts-converter');
// EASY: Convert to any style
console.log(fancy.convert('Hello World', 'bold'));
// Output: 𝐇𝐞𝐥𝐥𝐨 𝐖𝐨𝐫𝐥𝐝
console.log(fancy.convert('Hello World', 'script'));
// Output: 𝒽ℯ𝓁𝓁ℴ 𝒲ℴ𝓇𝓁𝒹
// Show ALL styles at once!
const allStyles = fancy.showAll('Hello');
console.log(allStyles);
// Output: { Bold: '𝐇𝐞𝐥𝐥𝐨', Italic: '𝐻𝑒𝑙𝑙𝑜', ... }
// List all available styles
const styles = fancy.listStyles();
console.log(styles);
// Output: [{ key: 'bold', name: 'Bold' }, ...]Command-Line Tool
# Convert text to a specific style
npx fancy-fonts convert "Hello World" --style bold
# Output: 𝐇𝐞𝐥𝐥𝐨 𝐖𝐨𝐫𝐥𝐝
# Show ALL styles at once!
npx fancy-fonts convert "Hello" --all
# List all available styles
npx fancy-fonts list
# Backwards compatible (old syntax still works)
npx fancy-fonts "Hello" --bold
npx fancy-fonts "Hello" --italic🎭 All 18 Available Styles
| Style | Key | Example |
|-------|-----|----------|
| Bold | bold | 𝐇𝐞𝐥𝐥𝐨 𝐖𝐨𝐫𝐥𝐝 |
| Italic | italic | 𝐻𝑒𝑙𝑙𝑜 𝑊𝑜𝑟𝑙𝑑 |
| Bold Italic | bolditalic | 𝑯𝒆𝒍𝒍𝒐 𝑾𝒐𝒓𝒍𝒅 |
| Script | script | 𝒽ℯ𝓁𝓁ℴ 𝒲ℴ𝓇𝓁𝒹 |
| Bold Script | boldscript | 𝓗𝓮𝓵𝓵𝓸 𝓦𝓸𝓻𝓵𝓭 |
| Double-struck | double | 𝕳𝖊𝖑𝖑𝖔 𝖂𝖔𝖗𝖑𝖉 |
| Fraktur (Gothic) | fraktur | 𝔥𝔢𝔩𝔩𝔬 𝔴𝔬𝔯𝔩𝔡 |
| Bold Fraktur | boldfraktur | 𝖍𝖊𝖑𝖑𝖔 𝖜𝖔𝖗𝖑𝖉 |
| Sans-serif | sans | 𝗁𝖾𝗅𝗅𝗈 𝗐𝗈𝗋𝗅𝖽 |
| Sans-serif Bold | sansbold | 𝗵𝗲𝗹𝗹𝗼 𝘄𝗼𝗿𝗹𝗱 |
| Sans-serif Italic | sansitalic | 𝘩𝘦𝘭𝘭𝘰 𝘸𝘰𝘳𝘭𝘥 |
| Monospace | mono | 𝚑𝚎𝚕𝚕𝚘 𝚠𝚘𝚛𝚕𝚍 |
| Circled | circled | ⓗⓔⓛⓛⓞ ⓦⓞⓡⓛⓓ |
| Negative Circled | negcircled | 🅗🅔🅛🅛🅞 🅦🅞🅡🅛🅓 |
| Squared | squared | 🄷🄴🄻🄻🄾 🅆🄾🅁🄻🄳 |
| Negative Squared | negsquared | 🅷🅴🅻🅻🅾 🆆🅾🆁🅻🅳 |
| Parenthesized | parenthesized | ⒣⒠⒧⒧⒪ ⒲⒪⒭⒧⒟ |
| Fullwidth | fullwidth | hello world |
📖 API Documentation
convert(text, style)
Convert text to a specific style.
fancy.convert('Hello', 'bold') // → '𝐇𝐞𝐥𝐥𝐨'
fancy.convert('Hello', 'script') // → '𝒽ℯ𝓁𝓁ℴ'showAll(text)
Display text in all available styles.
const all = fancy.showAll('Hi');
// → { Bold: '𝐇𝐢', Italic: '𝐻𝑖', Script: '𝒽𝒾', ... }listStyles()
Get a list of all available styles with their keys.
const styles = fancy.listStyles();
// → [
// { key: 'bold', name: 'Bold' },
// { key: 'italic', name: 'Italic' },
// ...
// ]Individual Style Functions
Each font style also has a dedicated function:
fancy.toBold('Hello') // → 𝐇𝐞𝐥𝐥𝐨
fancy.toItalic('Hello') // → 𝐻𝑒𝑙𝑙𝑜
fancy.toScript('Hello') // → 𝒽ℯ𝓁𝓁ℴ
fancy.toCircled('Hello') // → ⓗⓔⓛⓛⓞ
fancy.toFraktur('Hello') // → 𝔥𝔢𝔩𝔩𝔬
fancy.toMono('Hello') // → 𝚑𝚎𝚕𝚕𝚘
// ... and 12 more!All functions:
toBold(text)toItalic(text)toBoldItalic(text)toScript(text)toBoldScript(text)toDouble(text)toFraktur(text)toBoldFraktur(text)toSans(text)toSansBold(text)toSansItalic(text)toMono(text)toCircled(text)toNegCircled(text)toSquared(text)toNegSquared(text)toParenthesized(text)toFullwidth(text)
💡 Examples
const fancy = require('fancy-fonts-converter');
// Social Media Post
console.log(fancy.convert('SALE! 50% OFF', 'boldfraktur'));
// → 𝕾𝕬𝕷𝕰! 50% 𝕺𝕱𝕱
// Discord Username
console.log(fancy.convert('CoolGamer', 'script'));
// → 𝒞ℴℴ𝓁𝒢𝒶𝓂ℯ𝓇
// Headings
console.log(fancy.convert('Welcome!', 'sansbold'));
// → 𝗪𝗲𝗹𝗰𝗼𝗺𝗲!
// See all variations
const all = fancy.showAll('Test');
Object.keys(all).forEach(styleName => {
console.log(`${styleName}: ${all[styleName]}`);
});⚙️ CLI Commands
# Basic usage
npx fancy-fonts convert "Text" --style <stylename>
# Show all styles at once
npx fancy-fonts convert "Text" --all
# List available styles
npx fancy-fonts list
# Direct options (old syntax - still supported)
npx fancy-fonts "Text" --bold
npx fancy-fonts "Text" --italic
npx fancy-fonts "Text" --script
npx fancy-fonts "Text" --double🌟 Features
- ✅ 18 different Unicode font styles
- ✅ Super easy API - just one function!
- ✅ CLI tool - ready to use immediately
- ✅ No dependencies (except commander for CLI)
- ✅ TypeScript-friendly
- ✅ Works everywhere - Browser, Node.js, Terminal
- ✅ 100% Unicode - no CSS or fonts needed!
🔧 Technical Details
This package uses Unicode Mathematical Alphanumeric Symbols and other Unicode ranges to convert text to different styles. The converted texts work anywhere Unicode is supported!
📝 Changelog
Version 1.1.0
- ✨ 14 new font styles added (18 total!)
- ✨ Simpler API with
convert()function - ✨
showAll()shows all styles at once - ✨
listStyles()for style overview - ✨ Improved CLI with new commands
- ✅ Backwards compatible with version 1.0.0
Version 1.0.0
- 🎉 Initial release
- ✅ 4 basic fonts (Bold, Italic, Script, Double-struck)
📄 License
MIT © Max
🤝 Contributing
Pull requests are welcome! For major changes, please open an issue first.
💖 Support
If you like this package, give it a ⭐ on GitHub!
🔗 Links
Made with ❤️ by Max
