CLI Tool Utilities & Power Tools ★ 3,354 stars on GitHub

underscore.string

Provides reliable text manipulation helpers for JavaScript projects missing built-in formatting functions.

Get Command-Line Tool →
Command-Line Utility (No Graphical Interface): This program runs inside your system terminal or command prompt rather than opening a desktop window. Follow the official installation instructions below.

Guide and Overview

What it does in plain English

This utility library fills common gaps in JavaScript by adding missing text formatting operations. It lets developers easily clean up whitespace, capitalize words, truncate sentences, and transform text styles without writing complex custom code from scratch.

Who it’s for

  • JavaScript developers building web applications that require heavy text processing.
  • Front-end engineers looking for modular tools to clean and format user input.
  • Programmers migrating legacy string-processing logic into modern modular codebases.

Key features

  • Safely capitalizes, decapitalizes, and alters the casing of any text string.
  • Cleans up unwanted whitespace, trims padding characters, and normalizes diacritics.
  • Chops, slices, and wraps paragraphs into manageable arrays or custom widths.
  • Safely escapes and unescapes special HTML characters for web output.

How to install (Download)

You can grab the uncompressed source code or the minified script directly for your web pages:

Pros and Cons

  • Pros: Lightweight modular architecture, intuitive function names, standalone library.
  • Cons: Native browser methods now handle many basic use cases natively.

Optional commercial services unrelated to the open-source developer. Clicking an #ad link helps fund HubHum at no extra cost to you.

  • ★ Top Recommended — Systeme.io: Free-forever all-in-one platform to build landing pages, newsletters, and automated workflows with zero monthly fees — Activate Systeme.io → (#ad)
  • AdGuard: Block intrusive ads, tracking scripts, and phishing domains system-wide across all browsers and desktop apps — AdGuard (#ad)
  • InterServer: Launch and host self-hosted web apps 24/7 on managed Linux cloud VPS servers starting at $3/month — InterServer (#ad)

Official Source & Credits: Official Source / Credits

Affiliate transparency (#ad): Some links on this page are affiliate links. If you choose to activate a service through them, we may earn a commission at no extra cost to you.

Your Saved Favorites

Your favorite apps are saved right here in this browser.


Sign in with one click to link your GitHub profile and sync favorites.