npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

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