Zero-dependency Unicode text formatter for LinkedIn, X (Twitter), and Threads.
social-text-styler is a fast, lightweight library and CLI that transforms plain ASCII text into mathematical Unicode characters that render as bold, italic, monospace, strikethrough, bubble, and script text on platforms that don't support native Markdown (like LinkedIn and Twitter bios).
Part of the PostReady.org open-source toolkit.
| Style | Output Example |
|---|---|
bold (default) |
|
serifBold |
|
italic |
|
serifItalic |
|
boldItalic |
|
monospace |
|
bubble |
ⓅⓞⓢⓣⓇⓔⓐⓓⓨ ⓪②⑥ |
script |
ℴℛℯ |
fraktur |
ℜ |
strikethrough |
P̶o̶s̶t̶R̶e̶a̶d̶y̶ |
underline |
P̲o̲s̲t̲R̲e̲a̲d̲y̲ |
Run instantly with npx:
# Bold text (default)
npx social-text-styler "Product Launch"
# Italic headline
npx social-text-styler "Key Takeaway" --style italic
# Monospace code snippet
npx social-text-styler "const post = ready;" --style monospace
# Pipe text directly from terminal
echo "Major Announcement" | npx social-text-styler --style bubble
# List all styles with previews
npx social-text-styler --listInstall globally:
npm install -g social-text-stylerInstall locally:
npm install social-text-stylerimport { styleText } from 'social-text-styler';
// Basic bold styling
const boldHeadline = styleText('Launch Day is Here!', 'bold');
console.log(boldHeadline);
// Output: !
// Smart URL preservation (preserves URLs from getting corrupted)
const post = styleText('Check our live release at https://postready.org today!', 'bold', {
preserveUrls: true
});
console.log(post);
// Output: https://postready.org !Prefer a browser GUI? Use our free interactive tool on PostReady: PostReady LinkedIn Text Formatter
MIT © eco-null