New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

formatting-subtitles

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Malware was recently detected in this package.

Affected versions:

1.0.2

formatting-subtitles

Formatting subtitles for claude by removing unicode characters and normalizing them

latest
npmnpm
Version
1.0.2
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

unicode-title-normalizer

Normalize a title and the CSS colors inside it.

Titles are Unicode-normalized (NFKC by default), stripped of ANSI colors, HTML tags, and invisible characters, then title-cased. Hex, rgb(), and hsl() values become lowercase #rrggbb (or #rrggbbaa when alpha is below 1).

const { normalizeTitle, normalizeColor } = require("unicode-title-normalizer");

normalizeTitle("  cafe\u0301   #FFF ");
// "Café #ffffff"

normalizeColor("hsl(0, 100%, 50%)");
// "#ff0000"
node cli.js "  héllo   WORLD #F00"
# Héllo World #ff0000

node cli.js --color "Rebecca Purple"
# #663399
npm test

FAQs

Package last updated on 21 Oct 2026

Related posts