Skip to content

v0.2.0 - 11 New String Utilities

Choose a tag to compare

@Zheruel Zheruel released this 02 Sep 19:14
· 62 commits to main since this release

What's New

This release adds 11 powerful new string utilities to the library, expanding our collection from 15 to 26 functions!

✨ New Functions

Template Processing

  • template() - String interpolation with variables and nested object support
  • templateSafe() - HTML-escaped version of template for safe rendering

Padding Utilities

  • pad() - Pad string on both sides to target length
  • padStart() - Pad string on the left to target length
  • padEnd() - Pad string on the right to target length

Case Conversions

  • titleCase() - Proper title capitalization with customizable exceptions
  • constantCase() - Convert to CONSTANT_CASE format
  • dotCase() - Convert to dot.case format
  • pathCase() - Convert to path/case format
  • sentenceCase() - Capitalize first letter of each sentence

Text Processing

  • deburr() - Remove diacritics/accents from Latin characters (é→e, ñ→n)

📦 Installation

npm install [email protected]

🚀 Features

  • All functions maintain < 1KB bundle size
  • Full TypeScript support with comprehensive types
  • Unicode-aware implementations for proper emoji handling
  • 100% test coverage for all new functions
  • Zero dependencies

📖 Full Changelog

See CHANGELOG.md