Skip to content

Latest commit

 

History

History
63 lines (35 loc) · 2.55 KB

README.md

File metadata and controls

63 lines (35 loc) · 2.55 KB

This entire repository was created completely with AI, using the hero-ai-package-creator, which is open-source, uses GPT-4, and is written & maintained by Sam Chahine ❣️🧞‍♀️

hero-string-manipulation 🦸‍♂️

A package that provides various functions for manipulating strings, such as changing case and capitalization.

📜 Table of Contents

📥 Installation

npm install hero-string-manipulation

🌟 Features

toUppercase

Convert the input string to uppercase. It handles different character sets (ASCII, Unicode) and empty strings. For example, given 'hello world', it returns 'HELLO WORLD'. If given an empty string (''), it returns an empty string without raising errors. It doesn't alter the original string.

toLowercase

Convert the input string to lowercase. It accommodates various character sets (ASCII, Unicode) and empty strings. For instance, given 'HELLO WORLD', it outputs 'hello world'. If provided with an empty string (''), it returns an empty string without raising errors. The original string remains unaltered.

capitalizeWords

Capitalize the first letter of each word in the input string. Handles strings with multiple spaces between words, strings with leading or trailing spaces, and empty strings. For example, given ' hello world ', it returns ' Hello World '. If given an empty string (''), it returns an empty string without raising errors. It doesn't modify the original string.

👨‍💻 Author

Sam Chahine at Hero

Tests for capitalizeWords

capitalizeWords

Tests for toLowercase

toLowercase

Tests for toUppercase

toUppercase

Tests for capitalizeWords

capitalizeWords

Tests for toLowercase

toLowercase

Tests for toUppercase

toUppercase