Skip to content

About

Zero-dependency Unicode text formatter for LinkedIn and X (Twitter): bold, italic, monospace, bubble, and script styles.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

social-text-styler

Zero-dependency Unicode text formatter for LinkedIn, X (Twitter), and Threads.

License: MIT Node.js Zero Dependencies Powered by PostReady

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.


Supported Styles

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̲

Quick Start (CLI)

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 --list

Install globally:

npm install -g social-text-styler

Programmatic API

Install locally:

npm install social-text-styler

ESM / TypeScript:

import { 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 !

Web Version

Prefer a browser GUI? Use our free interactive tool on PostReady: PostReady LinkedIn Text Formatter


License

MIT © eco-null

About

Zero-dependency Unicode text formatter for LinkedIn and X (Twitter): bold, italic, monospace, bubble, and script styles.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages